private static void verifyHaContainerDestroyed(Boolean isRegion, Integer port) {
    Map region = cache.getRegion(SEPARATOR + CacheServerImpl.generateNameForClientMsgsRegion(port));

    if (isRegion) {
      if (region != null) {
        assertThat(((Region) region).isDestroyed()).isTrue();
      }
    } else {
      region = ((InternalCacheServer) cache.getCacheServers().toArray()[0]).getAcceptor()
          .getCacheClientNotifier().getHaContainer();
      if (region != null) {
        assertThat(region.isEmpty()).isTrue();
      }
    }
  }
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