private long[] getActualOverflowEntries() {
    Region<Integer, byte[]> region = cacheRule.getCache().getRegion(REGION_NAME);
    PartitionedRegion partitionedRegion = (PartitionedRegion) region;

    int totalBucketEntriesInVM = 0;
    int totalBucketEntriesOnDisk = 0;
    Set<Entry<Integer, BucketRegion>> buckets =
        partitionedRegion.getDataStore().getAllLocalBuckets();
    for (Map.Entry<Integer, BucketRegion> entry : buckets) {
      BucketRegion bucket = entry.getValue();
      if (bucket != null) {
        totalBucketEntriesInVM += bucket.testHookGetValuesInVM();
        totalBucketEntriesOnDisk += bucket.testHookGetValuesOnDisk();
      }
    }

    return new long[] {totalBucketEntriesInVM, totalBucketEntriesOnDisk};
  }
Return the actual values for entries in the jvm (in memory) and entries on disk. These values
are the sum of all buckets in the current member.

@return [0] total entries in VM [1] total entries on disk
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/partitioned/BucketRebalanceStatRegressionTest.java