The master-is-stable indicator will retrieve useful information
regarding the discovery. This will be useful even if the local
cluster state is not recovered.

We currently do not evaluate the instance-has-master indicator
if the cluster state is not recovered, but we should remove this
constraint once master-is-stable is merged
server/src/test/java/org/elasticsearch/health/HealthServiceTests.java
public void testMissingComponentOrIndicator() {
        var networkLatency = new HealthIndicatorResult("network_latency", "coordination", GREEN, null, null, null, null, null);
        var slowTasks = new HealthIndicatorResult("slow_task_assignment", "coordination", YELLOW, null, null, null, null, null);
        var shardsAvailable = new HealthIndicatorResult("shards_availability", "data", GREEN, null, null, null, null, null);
        var service = new HealthService(
            Collections.emptyList(),
            List.of(
                createMockHealthIndicatorService(networkLatency),
                createMockHealthIndicatorService(slowTasks),
                createMockHealthIndicatorService(shardsAvailable)
            ),
            mockEmptyClusterService()
        );
        expectThrows(
            ResourceNotFoundException.class,
            "Did not find component component99",
            () -> service.getHealth("component99", null, false)
        );
        expectThrows(
            ResourceNotFoundException.class,
            "Did not find indicator indicator99 in component component1",
            () -> service.getHealth("coordination", "indicator99", false)
        );
    }
    public void testPreflightIndicatorResultsPresent() {
        
        var hasMaster = new HealthIndicatorResult("has_master", "coordination", GREEN, null, null, null, null, null);
        
        var networkLatency = new HealthIndicatorResult("network_latency", "coordination", GREEN, null, null, null, null, null);
        var slowTasks = new HealthIndicatorResult("slow_task_assignment", "coordination", YELLOW, null, null, null, null, null);