@Test
  public void testTwoPrimaryFailedOneAfterTheAnother() throws Exception {

    createClientCacheWithLargeRetryInterval(getName(),
        NetworkUtils.getServerHostName(server1.getHost()));
    // primary
    server1.invoke(HAStartupAndFailoverDUnitTest::verifyDispatcherIsAlive);

    // secondaries
    server2.invoke(HAStartupAndFailoverDUnitTest::verifyDispatcherIsNotAlive);
    server3.invoke(HAStartupAndFailoverDUnitTest::verifyDispatcherIsNotAlive);
    setClientServerObserver();

    server1.invoke(HAStartupAndFailoverDUnitTest::stopServer);
    // stop ProbablePrimary
    server2.invoke(HAStartupAndFailoverDUnitTest::stopServer);
    // processException();


    waitForPrimaryIdentification();
    // new primary
    server3.invoke(HAStartupAndFailoverDUnitTest::verifyDispatcherIsAlive);
    unSetClientServerObserver();

  }
verify that when an exeption occurs during making primary to two EPs , new primary will be
selected
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/HAStartupAndFailoverDUnitTest.java