DateValue extends ObjectValueAdapter<LocalDate> { @Override public Type type() { return InternalTypeSystem.TYPE_SYSTEM.DATE(); } DateValue( LocalDate date ); @Override LocalDate asLocalDate(); @Override Type type();  }
@Test void shouldHaveCorrectType() { LocalDate localDate = LocalDate.now(); DateValue dateValue = new DateValue( localDate ); assertEquals( InternalTypeSystem.TYPE_SYSTEM.DATE(), dateValue.type() ); }