public void stop() {
    try {
      sharedHealthState.clearMine();
    } catch (HazelcastInstanceNotActiveException | RetryableHazelcastException e) {
      LOG.debug("Hazelcast is not active anymore", e);
    }
  }
@Test
  void stop_whenThrowHazelcastInactiveException_shouldSilenceError() {
    logging.setLevel(DEBUG);
    SharedHealthState sharedHealthStateMock = mock(SharedHealthState.class);
    doThrow(HazelcastInstanceNotActiveException.class).when(sharedHealthStateMock).clearMine();
    HealthStateRefresher underTest = new HealthStateRefresher(executorService, nodeHealthProvider, sharedHealthStateMock);
    underTest.stop();

    assertThat(logging.getLogs(ERROR)).isEmpty();
    assertThat(logging.hasLog(DEBUG, "Hazelcast is not active anymore")).isTrue();
  }