@Test
  public void testCompoundBloomSizing() {
    int bloomBlockByteSize = 4096;
    int bloomBlockBitSize = bloomBlockByteSize * 8;
    double targetErrorRate = 0.01;
    long maxKeysPerChunk = BloomFilterUtil.idealMaxKeys(bloomBlockBitSize, targetErrorRate);

    long bloomSize1 = bloomBlockByteSize * 8;
    long bloomSize2 = BloomFilterUtil.computeBitSize(maxKeysPerChunk, targetErrorRate);

    double bloomSizeRatio = (bloomSize2 * 1.0 / bloomSize1);
    assertTrue(Math.abs(bloomSizeRatio - 0.9999) < 0.0001);
  }
Validates the false positive ratio by computing its z-value and comparing it to the provided
threshold.
@param falsePosRate   experimental positive rate
@param nTrials        the number of Bloom filter checks
@param zValueBoundary z-value boundary, positive for an upper bound and negative for a lower
                      bound
@param cbf            the compound Bloom filter we are using
@param additionalMsg  additional message to include in log output and assertion failures
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCompoundBloomFilter.java