	@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;

		TransformDistance td = new TransformDistance(0.5, new DynamicTimeWarping());
		double distance = td.distance(timeSeries1, timeSeries2);

		assertEquals(expectation, distance, 0);
	}