@Deprecated
  public CommandResult executeCommand(String command) {
    String moduleArgs = "";
    if (command.matches("^start +server.*") || command.matches("^start +locator.*")) {
      moduleArgs = getJvmModuleOptions().stream()
          .map(s -> "--J=" + s)
          .collect(joining(" ", " ", ""));
    }

    gfsh.executeCommand(command + moduleArgs);

    CommandResult result;
    try {
      result = gfsh.getResult();
    } catch (InterruptedException e) {
      throw new RuntimeException(e);
    }
    if (StringUtils.isBlank(gfsh.outputString) && result != null) {
      gfsh.outputString = result.asString();
    }
    System.out.println("Command result for <" + command + ">: \n" + gfsh.outputString);
    commandResult = result;
    return result;
  }
@param command the String command to execute
@return Command result object

@deprecated use executeAndAssertThat(command). if you really need to get the result object
            to do assertion, you can use hasTable().getActual() or hasData().getActual
            after that method call.
geode-dunit/src/main/java/org/apache/geode/test/junit/rules/GfshCommandRule.java