public <T extends Converter> T spyConverter(Class<T> klass) {
    Set<Converter<?>> converters = parser.getConverters();
    T foundConverter = null, spy = null;
    for (Converter converter : converters) {
      if (klass.isAssignableFrom(converter.getClass())) {
        foundConverter = (T) converter;
        break;
      }
    }
    if (foundConverter != null) {
      parser.remove(foundConverter);
      spy = spy(foundConverter);
      parser.add(spy);
    }
    return spy;
  }
@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