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
);
        assertThat(
            service.getHealth("coordination", "slow_task_assignment", false),
            hasItems(new HealthComponentResult("coordination", null, List.of(slowTasks)))
        );
    }
    public void testDuplicateIndicatorNames() {
        
        var networkLatency = new HealthIndicatorResult(
            "network_latency",
            "coordination",
            GREEN,
            null,
            null,
            null,
            Collections.emptyList(),
            Collections.emptyList()
        );
        var slowTasks = new HealthIndicatorResult(
            "network_latency",
            "coordination",
            YELLOW,
            null,
            null,
            null,
            Collections.emptyList(),
            Collections.emptyList()
        );
        expectThrows(AssertionError.class, () -> HealthService.createComponentFromIndicators(List.of(networkLatency, slowTasks), true));
    }