@Override
    public ObjectMapper get() {
        return objectMapper;
    }
@Test
    void durationSerialization() throws JsonProcessingException {
        final ObjectMapperProvider omp = new ObjectMapperProvider();
        final ObjectMapper objectMapper = omp.get();

        final String javaDuration = objectMapper.writeValueAsString(java.time.Duration.ofSeconds(10));
        final String jodaDuration = objectMapper.writeValueAsString(org.joda.time.Duration.standardSeconds(10));

        assertThat(javaDuration).isEqualTo("\"PT10S\"");
        assertThat(jodaDuration).isEqualTo("10000");
    }