DurationValue extends ObjectValueAdapter<IsoDuration> { @Override public IsoDuration asIsoDuration() { return asObject(); } DurationValue( IsoDuration duration ); @Override IsoDuration asIsoDuration(); @Override Type type();  }
@Test void shouldSupportAsOffsetTime() { IsoDuration duration = newDuration( 111, 222, 333, 444 ); DurationValue durationValue = new DurationValue( duration ); assertEquals( duration, durationValue.asIsoDuration() ); }