@Test
public void testGetAndSetInvalidExpectedInsertions() {

    final int invalidExpectedInsertions = -1 * Math.abs(ThreadLocalRandom.current().nextInt());
    final TestingBloomFilterConfig config = new TestingBloomFilterConfig();
    assertThatThrownBy(() -> config.setExpectedInsertions(invalidExpectedInsertions))
            .isInstanceOf(BadParameterException.class)
            .hasMessageContaining("invalid parameter");
}