@Test
  public void testSlaveReads() throws Exception {
    int n = 1000;
    double p = 0.01;

    BloomFilter<String> filter = createSlaveFilter("slaves", n, p, true);

    List<String> items =
        IntStream.range(0, 100)
            .mapToObj(i -> "obj" + String.valueOf(i))
            .collect(Collectors.toList());
    items.forEach(filter::add);

    // On localhost, there is no perceivable replication lag
    // Thread.sleep(10);

    assertTrue(filter.containsAll(items));
    items.forEach(i -> assertTrue(filter.contains(i)));

    filter.remove();
  }
  @Test
  public void removeExistingFilter() {
    int n = 1000;
    double p = 0.01;

    String name = "loadExistingTest";
    String testString = "simpletest";

    cleanupRedis();
    BloomFilter<String> first = createFilter(name, n, p, true);

    first.add(testString);

    first.remove();

    if (filterTypes == FilterTypes.SENTINEL_CONFIG) {
      assert (!getSentinelJedis().getResource().exists(name));
    } else {
      assert (!getJedis().exists(name));
    }
  }