@Test
  public void testRedundancySpecifiedPrimaryEPFailsDetectionByUnregisterInterest()
      throws Exception {

    createClientCache(NetworkUtils.getServerHostName(), PORT1, PORT2, PORT3, PORT4,
        1, 3000, 100);
    waitConnectedServers(4);
    assertThat(pool.getPrimaryName().equals(SERVER1)).isTrue();
    assertThat(pool.getRedundantNames().contains(SERVER2)).isTrue();
    verifyOrderOfEndpoints();
    server0.invoke(RedundancyLevelTestBase::stopServer);

    unregisterInterest();
    verifyRedundantServersContain(SERVER3);
    verifyConnectedAndRedundantServers(3, 1);
    verifyOrderOfEndpoints();

    assertThat(pool.getPrimaryName().equals(SERVER2)).isTrue();

  }
Redundancy level specified & less than total Eps. If an EP dies & is part of the fail over list
, then it should be removed from live server map & added to dead server map. A new EP should be
picked from the live server map to compensate for the failure. The EP failed also happened to
be a Primary EP so a new EP from fail over set should become the primary and make sure that CCP
is created on the server with relevant interest registration. Failure Detection by CCU
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/RedundancyLevelPart2DUnitTest.java