@Test
  public void testInterstRegistrationOnRecoveredEPbyDSM() throws Exception {
    IgnoredException.addIgnoredException("SocketException");
    IgnoredException.addIgnoredException("Unexpected IOException");

    createClientPoolCache(getName(), NetworkUtils.getServerHostName(server1.getHost()));
    createEntriesK1andK2();
    registerK1AndK2();
    server1.invoke(HAInterestTestCase::createEntriesK1andK2);
    server2.invoke(HAInterestTestCase::createEntriesK1andK2);
    server3.invoke(HAInterestTestCase::createEntriesK1andK2);

    server1.invoke(HAInterestTestCase::stopServer);
    server2.invoke(HAInterestTestCase::stopServer);
    server3.invoke(HAInterestTestCase::stopServer);
    // All servers are dead at this point , no primary in the system.
    verifyDeadAndLiveServers(3, 0);

    // now start one of the servers
    server2.invoke(HAInterestTestCase::startServer);
    verifyDeadAndLiveServers(2, 1);
    // verify that is it primary , and dispatcher is running
    server2.invoke(HAInterestTestCase::verifyDispatcherIsAlive);
    // verify that interest is registered on this recovered EP
    server2.invoke(HAInterestTestCase::verifyInterestRegistration);

    // now start one more server ; this should be now secondary
    server1.invoke(HAInterestTestCase::startServer);
    verifyDeadAndLiveServers(1, 2);

    // verify that is it secondary , dispatcher should not be runnig
    server1.invoke(HAInterestTestCase::verifyDispatcherIsNotAlive);
    // verify that interest is registered on this recovered EP as well
    server1.invoke(HAInterestTestCase::verifyInterestRegistration);

    // now start one more server ; this should be now secondary
    server3.invoke(HAInterestTestCase::startServer);
    verifyDeadAndLiveServers(0, 3);

    // verify that is it secondary , dispatcher should not be runnig
    server3.invoke(HAInterestTestCase::verifyDispatcherIsNotAlive);
    // verify that interest is registered on this recovered EP as well
    server3.invoke(HAInterestTestCase::verifyInterestRegistration);
  }
Tests if DeadServerMonitor on detecting an EP as alive should register client ( create CCP) as
welll as register IL
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/HAInterestPart1DUnitTest.java