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

    final GMSMembershipView v = installAView();
    setFailureDetectionPorts(v);

    final MemberIdentifier memberToCheck = gmsHealthMonitor.getNextNeighbor();
    final GMSHealthMonitorTest testMonitor = (GMSHealthMonitorTest) gmsHealthMonitor;
    testMonitor.addMemberInFinalCheck(memberToCheck);
    assertThat(testMonitor.checkIfAvailable(memberToCheck,
        "Member failed to acknowledge a membership view", false)).isTrue();
  }
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