public boolean liveness() {

    if (!Health.Status.GREEN.equals(dbConnectionNodeCheck.check().getStatus())) {
      return false;
    }

    if (!Health.Status.GREEN.equals(webServerStatusNodeCheck.check().getStatus())) {
      return false;
    }

    if (!Health.Status.GREEN.equals(ceStatusNodeCheck.check().getStatus())) {
      return false;
    }

    if (esStatusNodeCheck != null && Health.Status.RED.equals(esStatusNodeCheck.check().getStatus())) {
      return false;
    }

    return true;
  }
@Test
  public void fail_when_ce_check_fail() {
    when(dbConnectionNodeCheck.check()).thenReturn(Health.GREEN);
    when(webServerStatusNodeCheck.check()).thenReturn(Health.GREEN);
    when(ceStatusNodeCheck.check()).thenReturn(RED);

    Assertions.assertThat(underTest.liveness()).isFalse();
  }