@Test
public void testSetDefaultValidPeriodAfterCreate() {

    final Configuration c = new Configuration();
    assertThatThrownBy(() -> c.setDefaultValidPeriodAfterCreate(-1))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("defaultValidSecondsAfterCreate: -1 (expected: > 0)");
    assertThatThrownBy(() -> c.setDefaultValidPeriodAfterCreate(0))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("defaultValidSecondsAfterCreate: 0 (expected: > 0)");
}