@Test
  public void testMemberIsNotAvailableWhenNotInFinalCheck() throws Exception {
    useGMSHealthMonitorTestClass = true;
    simulateHeartbeatInGMSHealthMonitorTestClass = false;
    installAView();

    final MemberIdentifier memberToCheck = gmsHealthMonitor.getNextNeighbor();
    final GMSHealthMonitorTest testMonitor = (GMSHealthMonitorTest) gmsHealthMonitor;
    assertThat(testMonitor.checkIfAvailable(memberToCheck,
        "Member failed to acknowledge a membership view", false, true)).isFalse();
  }
Send remove member message after doing final check for coordinator, ping timeout This test
trying to remove coordinator
geode-membership/src/integrationTest/java/org/apache/geode/distributed/internal/membership/gms/fd/GMSHealthMonitorJUnitTest.java