DurationConverter implements ITypeConverter<Duration> { @Override public Type getTargetType() { return Duration.class; } DurationConverter();  DurationConverter(IDurationFormatter formatter); @Override Duration convert(String value); @Override Type getTargetType(); @Override String toString();  }
@Test public void testGetTargetType() { Assert.assertEquals(Duration.class, new DurationConverter().getTargetType()); }