@Test
public void tryToGetInstanceFromNegativeDuration() {

    final Duration javaDuration = Duration.ofSeconds(-5);
    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> DittoDuration.of(javaDuration))
            .withMessage("The duration must not be negative but was <%s>!", javaDuration)
            .withNoCause();
}