@Test
public void testContinuousDistance() {

    Assert.assertEquals(distance.calc(denseVector1, denseVector2), 6.0, 0.01);
    Assert.assertEquals(distance.calc(denseVector1.getData(), denseVector2.getData()), 6.0, 0.01);
    Assert.assertEquals(distance.calc(denseVector1, sparseVector1), 5.47, 0.01);
    Assert.assertEquals(distance.calc(sparseVector1, sparseVector2), 0.50, 0.01);
    Assert.assertEquals(distance.calc(sparseVector1, denseVector2), 8.38, 0.01);
}