private static Long getUsedMemoryAndVerifyRegionSize(Integer haContainerSize,
      Integer port) {
    Long retVal;
    retVal = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
    if (port != -1) {
      verifyRegionSize(1, haContainerSize);
    } else {
      verifyRegionSize(haContainerSize);
    }
    return retVal;
  }
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