private int createCacheServer() throws IOException {
    System.setProperty(SystemProperty.DEFAULT_PREFIX + HA_REGION_QUEUE_EXPIRY_TIME_PROPERTY,
        EXPIRY_TIME_SECONDS);
    System.setProperty(SystemProperty.DEFAULT_PREFIX + THREAD_ID_EXPIRY_TIME_PROPERTY,
        EXPIRY_TIME_SECONDS);

    cacheRule.createCache();
    cacheRule.getCache().setMessageSyncInterval(MESSAGE_SYNC_INTERVAL_SECONDS);

    RegionFactory<String, String> rf = cacheRule.getCache().createRegionFactory(REPLICATE);
    rf.create(regionName);

    CacheServer server = cacheRule.getCache().addCacheServer();
    server.setPort(0);
    server.start();
    return server.getPort();
  }
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