@Test
  public void testGIIFromSecondaryWhenDSMDetectsServerLive() throws Exception {
    server1.invoke(HAInterestTestCase::closeCache);
    server2.invoke(HAInterestTestCase::closeCache);
    server3.invoke(HAInterestTestCase::closeCache);

    PORT1 = server1.invoke(HAInterestTestCase::createServerCacheWithLocalRegion);
    PORT2 = server2.invoke(HAInterestTestCase::createServerCacheWithLocalRegion);
    PORT3 = server3.invoke(HAInterestTestCase::createServerCacheWithLocalRegion);

    server1.invoke(HAInterestTestCase::createEntriesK1andK2);
    server2.invoke(HAInterestTestCase::createEntriesK1andK2);
    server3.invoke(HAInterestTestCase::createEntriesK1andK2);

    createClientPoolCache(getName(), NetworkUtils.getServerHostName(server1.getHost()));

    VM backup1 = getBackupVM();
    VM backup2 = getBackupVM(backup1);
    backup1.invoke(HAInterestTestCase::stopServer);
    backup2.invoke(HAInterestTestCase::stopServer);
    verifyDeadAndLiveServers(2, 1);
    registerK1AndK2();
    verifyRefreshedEntriesFromServer();
    backup1.invoke(HAInterestTestCase::putK1andK2);
    backup1.invoke(HAInterestTestCase::startServer);
    verifyDeadAndLiveServers(1, 2);
    verifyRefreshedEntriesFromServer();
  }
Tests a Scenario: stop a secondary server and update the registered entries on the stopped
server start the server , DSM will recover interest list on this live server and verify that as
a part of recovery it does not refreshes registered entries from the server, because it is
secondary
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/HAInterestPart2DUnitTest.java