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

        jobRunrStarter.startup(null);

        verify(backgroundJobServer).start();
        verify(dashboardWebServer).start();
    }