PartitionedRegionRedundancyTracker { synchronized void incrementLowRedundancyBucketCount() { if (lowRedundancyBuckets == totalBuckets) { return; } lowRedundancyBuckets++; stats.incLowRedundancyBucketCount(1); } PartitionedRegionRedundancyTracker(int totalBuckets, int redundantCopies,
      PartitionedRegionStats stats, String regionPath); int getActualRedundancy();  }
@Test public void willNotIncrementLowRedundancyBucketCountBeyondTotalsBuckets() { for (int i = 0; i < TOTAL_BUCKETS; i++) { redundancyTracker.incrementLowRedundancyBucketCount(); } verify(stats, times(TOTAL_BUCKETS)).incLowRedundancyBucketCount(1); redundancyTracker.incrementLowRedundancyBucketCount(); verifyNoMoreInteractions(stats); }