@Test
  public void testRedundancySpecifiedNonPrimaryEPFailsDetectionByRegisterInterest() {

    createClientCache(1, 250, 500);

    await().untilAsserted(() -> {
      assertThat(pool.getConnectedServerCount()).isEqualTo(DEFAULT_CONNECTED_SERVER_COUNT);
      assertThat(pool.getRedundantNames().size()).isEqualTo(1);
      assertThat(pool.getRedundantNames().contains(server1)).isTrue();
      assertThat(server0).isEqualTo(pool.getPrimaryName());
    });

    vm1.invoke(this::stopServer);
    createEntriesK1andK2();
    registerK1AndK2();

    await().untilAsserted(() -> assertThat(pool.getRedundantNames()).contains(server2));

    verifyConnectedAndRedundantServers(1);
    vm2.invoke(this::verifyInterestRegistration);
  }
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. Failure Detection by Register
Interest.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/RedundancyLevelPart1DUnitTest.java