@Test
void shutdownDelayInSec() {

    assertThat(shutdownHook.shutdownDelayInSec(Map.of())).isEqualTo(-1);    // default to no delay
    assertThat(shutdownHook.shutdownDelayInSec(Map.of("SHUTDOWN_DELAY_IN_SEC", "10")))
            .isEqualTo(10);
    assertThatThrownBy(() -> shutdownHook.shutdownDelayInSec(Map.of("SHUTDOWN_DELAY_IN_SEC", "-1")))
            .isInstanceOf(Error.class)
            .hasMessageContaining("greater than 0");
}