@Override
  public Health check() {
    ClusterHealthResponse healthResponse = getEsClusterHealth();
    return healthResponse != null ? extractStatusHealth(healthResponse) : RED_HEALTH_UNAVAILABLE;
  }
@Test
  public void check_returns_GREEN_without_cause_if_ES_cluster_status_is_GREEN() {
    when(esClient.clusterHealth(any()).getStatus()).thenReturn(ClusterHealthStatus.GREEN);

    Health health = underTest.check();

    assertThat(health).isEqualTo(Health.GREEN);
  }