@Test
public void testEquals() {

    final int validPeriod = ThreadLocalRandom.current().nextInt(0, Integer.MAX_VALUE);
    final double fpp = ThreadLocalRandom.current().nextDouble(0.0001, 1);
    final int expectedInsertions = ThreadLocalRandom.current().nextInt(1, Integer.MAX_VALUE);
    final ExpirableBloomFilterConfig filterA = new ExpirableBloomFilterConfig()
            .setValidPeriodAfterCreate(Duration.ofSeconds(validPeriod))
            .setFpp(fpp)
            .setExpectedInsertions(expectedInsertions);
    final ExpirableBloomFilterConfig filterB = new ExpirableBloomFilterConfig()
            .setValidPeriodAfterCreate(Duration.ofSeconds(validPeriod))
            .setFpp(fpp)
            .setExpectedInsertions(expectedInsertions);
    assertThat(filterA).isEqualTo(filterB);
}