@Override
    protected Map<String, String> getHealthInformation() {
        if (!configuration.getBackgroundJobServer().isEnabled()) {
            healthStatus = HealthStatus.UP;
            return mapOf("backgroundJobServer", "disabled");
        } else {
            if (backgroundJobServer.isRunning()) {
                healthStatus = HealthStatus.UP;
                return mapOf(
                        "backgroundJobServer", "enabled",
                        "backgroundJobServerStatus", "running"
                );
            } else {
                healthStatus = HealthStatus.DOWN;
                return mapOf(
                        "backgroundJobServer", "enabled",
                        "backgroundJobServerStatus", "stopped"
                );
            }
        }
    }
@Test
    void givenEnabledBackgroundJobServerAndBackgroundJobServerStopped_ThenHealthIsDown() {
        when(backgroundJobServerConfiguration.isEnabled()).thenReturn(true);
        when(backgroundJobServer.isRunning()).thenReturn(false);

        jobRunrHealthIndicator.getHealthInformation();

        assertThat(jobRunrHealthIndicator.getHealthStatus()).isEqualTo(HealthStatus.DOWN);
    }