public class BloomFilterTrackerTest extends CleanupHelper
{
@Test
public void testAddingFalsePositives()
{
BloomFilterTracker bft = new BloomFilterTracker();
assertEquals(0L, bft.getFalsePositiveCount());
assertEquals(0L, bft.getRecentFalsePositiveCount());
bft.addFalsePositive();
bft.addFalsePositive();
assertEquals(2L, bft.getFalsePositiveCount());
assertEquals(2L, bft.getRecentFalsePositiveCount());
assertEquals(0L, bft.getRecentFalsePositiveCount());
assertEquals(2L, bft.getFalsePositiveCount()); // sanity check
}