IndexTypeConverter implements Converter<org.apache.geode.cache.query.IndexType> { @Override public boolean supports(Class<?> type, String optionContext) { return org.apache.geode.cache.query.IndexType.class.isAssignableFrom(type) && optionContext.contains(ConverterHint.INDEX_TYPE); }  @Override boolean supports(Class<?> type, String optionContext); @Override org.apache.geode.cache.query.IndexType convertFromText(String value, Class<?> targetType,
      String optionContext); @Override boolean getAllPossibleValues(List<Completion> completions, Class<?> targetType,
      String existingData, String optionContext, MethodTarget target);  }
@Test @SuppressWarnings("deprecation") public void supports() { assertThat(typeConverter.supports(org.apache.geode.cache.query.IndexType.class, ConverterHint.INDEX_TYPE)).isTrue(); assertThat(typeConverter.supports(Enum.class, ConverterHint.INDEX_TYPE)).isFalse(); assertThat(typeConverter.supports(org.apache.geode.cache.query.IndexType.class, "")).isFalse(); assertThat(enumConverter.supports(org.apache.geode.cache.query.IndexType.class, "")).isTrue(); assertThat(enumConverter.supports(Enum.class, "")).isTrue(); assertThat(enumConverter.supports(org.apache.geode.cache.query.IndexType.class, ConverterHint.INDEX_TYPE)).isFalse(); assertThat(enumConverter.supports(Enum.class, ConverterHint.DISABLE_ENUM_CONVERTER)).isFalse(); }