@Test
public void factoryMethodOfIsUsedAsConverter() {

    ServiceContext serviceContext = ServiceContextManager.getServiceContext(getClass().getClassLoader());
    PropertyConverterManager manager = new PropertyConverterManager(serviceContext, true);
    List<PropertyConverter<MyType>> converters = manager.getPropertyConverters(
            (TypeLiteral) TypeLiteral.of(MyType.class));
    assertThat(converters).hasSize(1);
    PropertyConverter<MyType> converter = converters.get(0);
    ConversionContext ctx = new ConversionContext.Builder(TypeLiteral.of(String.class)).build();
    Object result = converter.convert("IN", ctx);
    assertThat(result).isNotNull();
    assertThat(result).isInstanceOf(MyType.class);
    assertThat(((MyType) result).getValue()).isEqualTo("IN");
}