TimeValue extends ObjectValueAdapter<OffsetTime> { @Override public Type type() { return InternalTypeSystem.TYPE_SYSTEM.TIME(); } TimeValue( OffsetTime time ); @Override OffsetTime asOffsetTime(); @Override Type type();  }
@Test void shouldHaveCorrectType() { OffsetTime time = OffsetTime.now().withOffsetSameInstant( ZoneOffset.ofHoursMinutes( 5, 30 ) ); TimeValue timeValue = new TimeValue( time ); assertEquals( InternalTypeSystem.TYPE_SYSTEM.TIME(), timeValue.type() ); }