DurationValue extends ObjectValueAdapter<IsoDuration> { @Override public Type type() { return InternalTypeSystem.TYPE_SYSTEM.DURATION(); } DurationValue( IsoDuration duration ); @Override IsoDuration asIsoDuration(); @Override Type type();  }
@Test void shouldHaveCorrectType() { IsoDuration duration = newDuration( 1, 2, 3, 4 ); DurationValue durationValue = new DurationValue( duration ); assertEquals( InternalTypeSystem.TYPE_SYSTEM.DURATION(), durationValue.type() ); }