@Override
    public Optional<HealthStatus> health() {
        return clusterHealth().map(response -> healthStatusFrom(response.getStatus()));
    }
@Test
    void returnsEmptyOptionalForHealthWhenElasticsearchExceptionThrown() {
        when(client.execute(any())).thenThrow(new OpenSearchException("Exception"));
        final Optional<HealthStatus> healthStatus = clusterAdapter.health();
        assertThat(healthStatus).isEmpty();
    }