    @DataProvider(value = {

        "true",
        "false"
    })
    @Test
    public void postServerStartupHooks_works_as_expected(boolean eurekaStartupHookIsNull) {
        // given
        PostServerStartupHook eurekaStartupHook = (eurekaStartupHookIsNull) ? null : mock(PostServerStartupHook.class);
        Whitebox.setInternalState(
            appServerConfig.guiceValues.eurekaServerHooks, "eurekaStartupHook", eurekaStartupHook
        );

        // when
        List<PostServerStartupHook> result = appServerConfig.postServerStartupHooks();

        // then
        if (eurekaStartupHookIsNull) {
            assertThat(result).isNull();
        }
        else {
            assertThat(result)
                .isNotNull()
                .containsExactly(eurekaStartupHook);
        }
    }