@Deprecated
    public static Duration toDuration(Time time) {
        return Duration.of(time.getSize(), toChronoUnit(time.getUnit()));
    }
@Test
    void testToDuration() {
        final Time time = Time.of(1337, TimeUnit.MICROSECONDS);
        final Duration duration = TimeUtils.toDuration(time);

        assertThat(duration.toNanos()).isEqualTo(time.getUnit().toNanos(time.getSize()));
    }