private static void closeCache() {
    if (cache != null && !cache.isClosed()) {
      cache.close();
      cache.getDistributedSystem().disconnect();
    }
  }
@param connectedServers is the expected number of connected servers (1 or more)
@param redundantServers is the expected number of redundant servers (0 or more)
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/RedundancyLevelTestBase.java