private static void verifyHaContainerType(Boolean isRegion, Integer port) {
    Map<Object, Object> haMap =
        cache.getRegion(CacheServerImpl.generateNameForClientMsgsRegion(port));
    if (isRegion) {
      assertThat(haMap).isNotNull();
      assertThat(haMap instanceof LocalRegion).isTrue();
      haMap = (Map<Object, Object>) ((InternalCacheServer) cache.getCacheServers().toArray()[0])
          .getAcceptor()
          .getCacheClientNotifier().getHaContainer();
      assertThat(haMap).isNotNull();
      assertThat(haMap instanceof HAContainerRegion).isTrue();
    } else {
      assertThat(haMap).isNull();
      haMap = (Map<Object, Object>) ((InternalCacheServer) cache.getCacheServers().toArray()[0])
          .getAcceptor()
          .getCacheClientNotifier().getHaContainer();
      assertThat(haMap).isNotNull();
      assertThat(haMap instanceof HAContainerMap).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