@Test
  public void testPrimaryFailureInRegisterInterest() throws Exception {
    createClientPoolCache(getName(), NetworkUtils.getServerHostName(server1.getHost()));
    createEntriesK1andK2();
    server1.invoke(HAInterestTestCase::createEntriesK1andK2);
    server2.invoke(HAInterestTestCase::createEntriesK1andK2);
    server3.invoke(HAInterestTestCase::createEntriesK1andK2);
    // stop primary
    VM oldPrimary = getPrimaryVM();
    stopPrimaryAndRegisterK1AndK2AndVerifyResponse();
    // DSM
    verifyDeadAndLiveServers(1, 2);
    // new primary
    VM newPrimary = getPrimaryVM(oldPrimary);
    newPrimary.invoke(HAInterestTestCase::verifyDispatcherIsAlive);
    newPrimary.invoke(HAInterestTestCase::verifyInterestRegistration);
  }
Tests if Primary fails during interest registration should initiate failover and should pick
new primary and get server keys in response of registerInterest
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/HAInterestPart1DUnitTest.java