@Test
public void testContinuousDistance() {

    Assert.assertEquals(distance.calc(denseVector1, denseVector2), 12.0, 0.01);
    Assert.assertEquals(distance.calc(denseVector1.getData(), denseVector2.getData()), 12.0, 0.01);
    Assert.assertEquals(distance.calc(denseVector1, sparseVector1), 10.5, 0.01);
    Assert.assertEquals(distance.calc(sparseVector1, sparseVector2), 0.8, 0.01);
    Assert.assertEquals(distance.calc(sparseVector1, denseVector2), 16.5, 0.01);
}