@Override
  public void run() {
    updateElasticSearchHealthStatus();
    updateFileSystemMetrics();
  }
@Test
  public void when_es_status_throw_exception_status_is_updated_to_red() {
    when(esClient.clusterHealth(any())).thenThrow(new IllegalStateException("exception in cluster health"));

    underTest.run();

    verify(serverMonitoringMetrics, times(1)).setElasticSearchStatusToRed();
    verifyNoMoreInteractions(serverMonitoringMetrics);

    assertThat(logTester.logs()).hasSize(2);
    assertThat(logTester.logs(Level.ERROR)).containsOnly("Failed to query ES status");
  }