@Override
    public String convertTo(Duration value) {
        // Durations will always be converted to ISO8601 formatted Strings
        // There is no meaningful way to convert them back to a simple jadconfig 'number+unit' format.
        return value.toString();
    }
@Test
    public void convertComplex() {
        assertThat(converter.convertTo(Duration.parse("PT1h5m"))).isEqualTo("PT1H5M");
        assertThat(converter.convertTo(Duration.parse("PT5m3s"))).isEqualTo("PT5M3S");
        assertThat(converter.convertTo(Duration.parse("PT0M0.25S"))).isEqualTo("PT0.25S");

        assertThat(converter.convertTo(Duration.parse("P1DT2S"))).isEqualTo("PT24H2S");
    }