EnumConverter implements ITypeConverter<E> { @Override public Type getTargetType() { return enumType; } EnumConverter(Class<E> enumType); @Override E convert(String value); @Override Type getTargetType(); @Override String toString();  }
@Test public void testGetTargetType() throws Exception { Assert.assertEquals(SampleEnum.class, new EnumConverter<>(SampleEnum.class).getTargetType()); }