public CommandCandidate complete(String command) {
    List<Completion> candidates = new ArrayList<>();
    int cursor = parser.completeAdvanced(command, command.length(), candidates);
    return new CommandCandidate(command, cursor, candidates);
  }
@param <T> the type of command class
@param instance an instance of the command class
@param command the command to execute
@return a {@link CommandResult}
@deprecated use {@link #executeAndAssertThat(Object, String)} instead
geode-junit/src/main/java/org/apache/geode/test/junit/rules/GfshParserRule.java