@Test
public void test() throws NoSuchAlgorithmException {

    MessageDigest md = MessageDigest.getInstance("SHA-1");
    
    byte[] b = md.digest("testf".getBytes());
    
    String hex = byteArrayToHexString(b);
    
    System.out.println("Byte size: " + b.length);
    System.out.println("Hex: " + hex);
    
    DLeftCountingBloomFilter filter = new DLeftCountingBloomFilter(8, 32);
    
    long bits = filter.getBits(b, 5, 0);
    System.out.println("Bits: " + bits);
}