public static void createClientCache(Pool poolAttr, String regionName, Properties dsProperties) {
    ClientCacheFactory ccf = new ClientCacheFactory(dsProperties);
    if (poolAttr != null) {
      ccf.setPoolFreeConnectionTimeout(poolAttr.getFreeConnectionTimeout())
          .setPoolServerConnectionTimeout(poolAttr.getServerConnectionTimeout())
          .setPoolLoadConditioningInterval(poolAttr.getLoadConditioningInterval())
          .setPoolSocketBufferSize(poolAttr.getSocketBufferSize())
          .setPoolMinConnections(poolAttr.getMinConnections())
          .setPoolMaxConnections(poolAttr.getMaxConnections())
          .setPoolIdleTimeout(poolAttr.getIdleTimeout())
          .setPoolPingInterval(poolAttr.getPingInterval())
          .setPoolStatisticInterval(poolAttr.getStatisticInterval())
          .setPoolRetryAttempts(poolAttr.getRetryAttempts())
          .setPoolReadTimeout(poolAttr.getReadTimeout())
          .setPoolSubscriptionEnabled(poolAttr.getSubscriptionEnabled())
          .setPoolPRSingleHopEnabled(poolAttr.getPRSingleHopEnabled())
          .setPoolSubscriptionRedundancy(poolAttr.getSubscriptionRedundancy())
          .setPoolSubscriptionMessageTrackingTimeout(
              poolAttr.getSubscriptionMessageTrackingTimeout())
          .setPoolSubscriptionTimeoutMultiplier(poolAttr.getSubscriptionTimeoutMultiplier())
          .setPoolSubscriptionAckInterval(poolAttr.getSubscriptionAckInterval())
          .setPoolServerGroup(poolAttr.getServerGroup())
          .setPoolMultiuserAuthentication(poolAttr.getMultiuserAuthentication());
      for (InetSocketAddress locator : poolAttr.getLocators()) {
        ccf.addPoolLocator(locator.getHostName(), locator.getPort());
      }
      for (InetSocketAddress server : poolAttr.getServers()) {
        ccf.addPoolServer(server.getHostName(), server.getPort());
      }
    }
    new CacheServerTestUtil().createClientCache(dsProperties, ccf);
    ClientCache cc = (ClientCache) cache;
    cc.createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY).create(regionName);
    pool = (PoolImpl) cc.getDefaultPool();
  }
@deprecated Please use {@link DistributedRule} and Geode User APIs or {@link ClusterStartupRule}
            instead.
geode-dunit/src/main/java/org/apache/geode/internal/cache/tier/sockets/CacheServerTestUtil.java