@Test
public void testHashFunction() {

    MinHashLSH lsh = new MinHashLSH(0, 2, 2);
    Vector vec1 = new DenseVector(new double[] {1, 2, 3, 4, 5});
    Assert.assertEquals(new DenseVector(new double[] {478212008, -1798305157}), lsh.hashFunction(vec1));
    Vector vec2 = new SparseVector(5, new int[] {0, 4}, new double[] {1.0, 4.0});
    Assert.assertEquals(new DenseVector(new double[] {-967745172, -594675602}), lsh.hashFunction(vec2));
}