LocalTimeConverter implements ITypeConverter<LocalTime> { @Override public LocalTime convert(String value) { return LocalTime.parse(value, dateTimeFormatter); } LocalTimeConverter();  LocalTimeConverter(DateTimeFormatter dateTimeFormatter); @Override LocalTime convert(String value); @Override Type getTargetType(); @Override String toString();  }
@Test public void testConvert() throws Exception { LocalTime val = new LocalTimeConverter().convert("23:50"); Assert.assertEquals(23, val.getHour()); Assert.assertEquals(50, val.getMinute()); }