PartitionedRegionRedundancyTracker { synchronized void incrementNoCopiesBucketCount() { if (noCopiesBuckets == totalBuckets) { return; } noCopiesBuckets++; stats.incNoCopiesBucketCount(1); if (noCopiesBuckets == 1) { logger.warn("All in memory copies of some data have been lost for " + regionPath); } } PartitionedRegionRedundancyTracker(int totalBuckets, int redundantCopies,
      PartitionedRegionStats stats, String regionPath); int getActualRedundancy();  }
@Test public void willNotIncrementNoCopiesBucketCountBeyondTotalsBuckets() { for (int i = 0; i < TOTAL_BUCKETS; i++) { redundancyTracker.incrementNoCopiesBucketCount(); } verify(stats, times(TOTAL_BUCKETS)).incNoCopiesBucketCount(1); redundancyTracker.incrementNoCopiesBucketCount(); verifyNoMoreInteractions(stats); }