LocalDateTimeValue extends ObjectValueAdapter<LocalDateTime> { @Override public Type type() { return InternalTypeSystem.TYPE_SYSTEM.LOCAL_DATE_TIME(); } LocalDateTimeValue( LocalDateTime localDateTime ); @Override LocalDateTime asLocalDateTime(); @Override Type type();  }
@Test void shouldHaveCorrectType() { LocalDateTime dateTime = LocalDateTime.of( 1991, AUGUST, 24, 12, 0, 0 ); LocalDateTimeValue dateTimeValue = new LocalDateTimeValue( dateTime ); assertEquals( InternalTypeSystem.TYPE_SYSTEM.LOCAL_DATE_TIME(), dateTimeValue.type() ); }