@Test
void shutdownTimeoutInMs() {

    assertThat(shutdownHook.shutdownTimeoutInMs(Map.of())).isEqualTo(Duration.ofSeconds(25).toMillis());    // default is 25s
    assertThat(shutdownHook.shutdownTimeoutInMs(Map.of("SHUTDOWN_TIMEOUT_IN_SEC", "60")))
            .isEqualTo(Duration.ofSeconds(60).toMillis());
    assertThatThrownBy(() -> shutdownHook.shutdownTimeoutInMs(Map.of("SHUTDOWN_TIMEOUT_IN_SEC", "-1")))
            .isInstanceOf(Error.class)
            .hasMessageContaining("greater than 0");
}