@Test
void isHealthy() {

  when(memoryMonitor.isMemoryHealthy(anyLong())).thenReturn(true);
  ElasticsearchResourceMonitor resourceMonitor =
      new ElasticsearchResourceMonitor(settings, memoryMonitor);
  assertTrue(resourceMonitor.isHealthy());
}