### Question:
DurationConverter implements BytesConverter<Duration> { @Override public Duration fromBytes(byte[] bytes) { return Duration.of(longConverter.fromBytes(bytes), ChronoUnit.MILLIS); } DurationConverter(BytesConverter<Long> longConverter); @Override Duration fromBytes(byte[] bytes); @Override byte[] toBytes(Duration value); static final BytesConverter<Duration> INSTANCE; }### Answer:
@Test public void testFromBytes() { assertEquals(Duration.ofDays(10), DurationConverter.INSTANCE.fromBytes(new byte[]{51, 127, -104, 0})); }