private void createClientCache(int port1, int port2) {
    ClientCacheFactory ccf = new ClientCacheFactory();
    ccf.setPoolSubscriptionEnabled(true);
    ccf.setPoolSubscriptionAckInterval(50);
    ccf.setPoolSubscriptionRedundancy(1);
    ccf.addPoolServer(hostName, port1);
    ccf.addPoolServer(hostName, port2);

    clientCacheRule.createClientCache(ccf);

    ClientRegionFactory<String, String> crf =
        clientCacheRule.getClientCache().createClientRegionFactory(CACHING_PROXY);

    Region<String, String> region = crf.create(regionName);
    region.registerInterest("ALL_KEYS");
  }
HARegionQueueThreadIdExpiryRegressionTest
<p>
TRAC #48879: Leaking ThreadIdentifiers and DispatchedAndCurrentEvents objects when client uses
many short lived threads
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/ha/HARegionQueueThreadIdExpiryRegressionTest.java