### Question:
BloomFilterAlt implements IFilter<E>, Serializable { public double expectedFalsePositiveProbability() { return getFalsePositiveProbability(expectedNumberOfFilterElements); } BloomFilterAlt(double c, int n, int k);  BloomFilterAlt(int bitSetSize, int expectedNumberOElements);  BloomFilterAlt(double falsePositiveProbability, int expectedNumberOfElements);  BloomFilterAlt(int bitSetSize, int expectedNumberOfFilterElements, int actualNumberOfFilterElements, BitSet filterData); static int createHash(String val, Charset charset); static int createHash(String val); static int createHash(byte[] data); static int[] createHashes(byte[] data, int hashes); @Override boolean equals(Object obj); @Override int hashCode(); double expectedFalsePositiveProbability(); double getFalsePositiveProbability(double numberOfElements); double getFalsePositiveProbability(); int getK(); void clear(); void add(E element); void add(byte[] bytes); double getPercentNonZero(); int getNumNonZero(); void addAll(Collection<? extends E> c); boolean membershipTest(E element); boolean contains(E element); boolean contains(byte[] bytes); boolean containsAll(Collection<? extends E> c); boolean getBit(int bit); void setBit(int bit, boolean value); BitSet getBitSet(); int size(); int count(); int getExpectedNumberOfElements(); double getExpectedBitsPerElement(); double getBitsPerElement();  }### Answer:
@Test public void testExpectedFalsePositiveProbability() { System.out.println("expectedFalsePositiveProbability"); BloomFilterAlt instance = new BloomFilterAlt(1000, 100); double expResult = 0.00819; double result = instance.expectedFalsePositiveProbability(); assertEquals(instance.getK(), 7); assertEquals(expResult, result, 0.000009); instance = new BloomFilterAlt(100, 10); expResult = 0.00819; result = instance.expectedFalsePositiveProbability(); assertEquals(instance.getK(), 7); assertEquals(expResult, result, 0.000009); instance = new BloomFilterAlt(20, 10); expResult = 0.393; result = instance.expectedFalsePositiveProbability(); assertEquals(1, instance.getK()); assertEquals(expResult, result, 0.0005); instance = new BloomFilterAlt(110, 10); expResult = 0.00509; result = instance.expectedFalsePositiveProbability(); assertEquals(8, instance.getK()); assertEquals(expResult, result, 0.00001); }