ZonedDateTimeConverter implements ConverterWrapper<ZonedDateTime, Date> { @Override public Date convertToAxiomValue(ZonedDateTime value) { return value != null ? Date.from(value.toInstant()) : null; }  @Override Date convertToAxiomValue(ZonedDateTime value); @Override ZonedDateTime convertToAttribute(Date value); @Override boolean supportsAxiomValueType(Class<?> type);  }
@Test void convertToAxiomValueTransformsZonedDateTimeToJavaUtilDate() { final ZonedDateTime value = ZonedDateTime.now(); final Date result = sut.convertToAxiomValue(value); assertEquals(Date.from(value.toInstant()), result); }
@Test void convertToAxiomReturnsNullForNullInput() { assertNull(sut.convertToAxiomValue(null)); }