@Test
public void testCorrectnessForDistanceCalculation2() {

	// Input.
	double[] timeSeries1 = { 0.50, 0.87, 0.90, 0.82, 0.70 };
	double[] timeSeries2 = { 0.10, 0.10, 0.10, 0.10, 0.10 };
	// Expectation.
	double expectation = 1.5070832757;
	EuclideanDistance ed = new EuclideanDistance();
	double distance = ed.distance(timeSeries1, timeSeries2);
	assertEquals(expectation, distance, 1.0E-5);
}