public static void verifyDeadAndLiveServers(final int expectedDeadServers,
      final int expectedLiveServers) {
    await()
        .untilAsserted(() -> assertEquals(expectedLiveServers, pool.getConnectedServerCount()));
  }
Tests failover initialization by cache operation Threads on secondary
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/HAStartupAndFailoverDUnitTest.java