private static void waitTillMessagesAreDispatched(Integer port) {
    Map haContainer;
    haContainer = cache.getRegion(
        SEPARATOR + generateNameForClientMsgsRegion(port));
    if (haContainer == null) {
      Object[] servers = cache.getCacheServers().toArray();
      for (Object server : servers) {
        if (port == ((InternalCacheServer) server).getPort()) {
          haContainer = ((InternalCacheServer) server).getAcceptor().getCacheClientNotifier()
              .getHaContainer();
          break;
        }
      }
    }
    final Map m = haContainer;
    GeodeAwaitility.await().until(() -> m.size() == 0);
  }
This test verifies that the memory footprint of the ha region queues is less when ha-overflow
is enabled (with an appropriate value of haCapacity) compared to when it is disabled, for the
same amount of data feed.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/ha/HARQueueNewImplDistributedTest.java