LocalDateConverter implements ITypeConverter<LocalDate> { @Override public LocalDate convert(String value) { return LocalDate.parse(value, dateTimeFormatter); } LocalDateConverter();  LocalDateConverter(DateTimeFormatter dateTimeFormatter); @Override LocalDate convert(String value); @Override Type getTargetType(); @Override String toString();  }
@Test public void testConvert() throws Exception { LocalDate val = new LocalDateConverter().convert("2011-12-03"); Assert.assertEquals(2011, val.getYear()); Assert.assertEquals(12, val.getMonthValue()); Assert.assertEquals(3, val.getDayOfMonth()); }