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