code: public static void cancel(Command command) {
          command.isCancel = true;
          if (I_COMMAND != null) {
              try {
                  I_COMMAND.cancel(command.mId);
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
      }
docs: Cancel Test