LocalDateConverter implements ConverterWrapper<LocalDate, Date> { @Override public Date convertToAxiomValue(LocalDate value) { return value != null ? java.sql.Date.valueOf(value) : null; }  @Override Date convertToAxiomValue(LocalDate value); @Override LocalDate convertToAttribute(Date value); @Override boolean supportsAxiomValueType(Class<?> type);  }
@Test void convertToAxiomValueTransformsLocalDateToJavaUtilDate() { final LocalDate value = LocalDate.now(); final Date result = sut.convertToAxiomValue(value); assertNotNull(result); assertEquals(java.sql.Date.valueOf(value), result); }
@Test void convertToAxiomReturnsNullForNullInput() { assertNull(sut.convertToAxiomValue(null)); }