@EventListener
    void startup(StartupEvent event) {
        if (configuration.getBackgroundJobServer().isEnabled()) {
            backgroundJobServer.get().start();
        }
        if (configuration.getDashboard().isEnabled()) {
            dashboardWebServer.get().start();
        }
    }
@Test
    void onStartOptionalsAreNotCalledToBootstrapIfNotConfigured() {
        when(backgroundJobServerConfiguration.isEnabled()).thenReturn(false);
        when(dashboardConfiguration.isEnabled()).thenReturn(false);

        jobRunrStarter.startup(null);

        verifyNoInteractions(backgroundJobServer);
        verifyNoInteractions(dashboardWebServer);
    }