private long getSizeFromPRStats(VM vm0) {
    return vm0.invoke("getSizeFromPRStats", () -> {
      Cache cache = ClusterStartupRule.getCache();
      assertThat(cache).isNotNull();
      InternalRegion region = (InternalRegion) cache.getRegion(TEST_REGION_NAME);
      if (region instanceof PartitionedRegion) {
        long total = 0;
        PartitionedRegion pr = (PartitionedRegion) region;
        int totalNumBuckets = pr.getPartitionAttributes().getTotalNumBuckets();
        for (int i = 0; i < totalNumBuckets; i++) {
          total += pr.getDataStore().getBucketSize(i);
        }
        return total;
      } else {
        return 0L;
      }
    });
  }
Tests the use of the per-delta "forceRecalculateSize" flag.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/DeltaForceSizingFlagDUnitTest.java