BloomFilter implements Serializable { public int getK() { return k; } BloomFilter(double c, int n, int k);  BloomFilter(int bitSetSize, int expectedNumberOElements);  BloomFilter(double falsePositiveProbability, int expectedNumberOfElements);  BloomFilter(int bitSetSize, int expectedNumberOfFilterElements, int actualNumberOfFilterElements, BitSet filterData); @Override boolean equals(Object obj); @Override int hashCode(); double expectedFalsePositiveProbability(); double getFalsePositiveProbability(double numberOfElements); double getFalsePositiveProbability(); int getK(); synchronized void clear(); synchronized void add(byte[] bytes); synchronized boolean contains(byte[] bytes); synchronized boolean getBit(int bit); synchronized void setBit(int bit, boolean value); synchronized BitSet getBitSet(); synchronized int size(); synchronized int count(); int getExpectedNumberOfElements(); double getExpectedBitsPerElement(); double getBitsPerElement();  }
@Test public void testGetK() { System.out.println("testGetK"); BloomFilter instance = null; instance = new BloomFilter(2, 1); assertEquals(1, instance.getK()); instance = new BloomFilter(3, 1); assertEquals(2, instance.getK()); instance = new BloomFilter(4, 1); assertEquals(3, instance.getK()); instance = new BloomFilter(5, 1); assertEquals(3, instance.getK()); instance = new BloomFilter(6, 1); assertEquals(4, instance.getK()); instance = new BloomFilter(7, 1); assertEquals(5, instance.getK()); instance = new BloomFilter(8, 1); assertEquals(6, instance.getK()); instance = new BloomFilter(9, 1); assertEquals(6, instance.getK()); instance = new BloomFilter(10, 1); assertEquals(7, instance.getK()); instance = new BloomFilter(11, 1); assertEquals(8, instance.getK()); instance = new BloomFilter(12, 1); assertEquals(8, instance.getK()); }