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