@Test
public void testCorrectnessForDistanceCalculation() {

	// Input.
	double[] timeSeries1 = { 1, 1, 1, 1, 1, 1 };
	double[] timeSeries2 = { 1, 1, 1, 1, 1, 1 };
	// Expectation.
	double expectation = 0;
	double lambda = 1.0;
	double nu = 0.001;
	TimeWarpEditDistance twed = new TimeWarpEditDistance(lambda, nu);
	double distance = twed.distance(timeSeries1, timeSeries2);
	assertEquals(expectation, distance, 0);
}