@Test
public void testCorrectnessForDistanceCalculation2() {

    // Input.
    double[] timeSeries1 = { 7.0, 8.0, 12.0, 15.0, 9.0, 3.0, 5.0 };
    double[] timeSeries2 = { 7.0, 9.0, 12.0, 15.0, 15.0, 9.0, 3.0 };
    // Expectation.
    double expectation = 11;
    double c = 4.0;
    MoveSplitMerge msm = new MoveSplitMerge(c);
    double distance = msm.distance(timeSeries1, timeSeries2);
    assertEquals(expectation, distance, 0);
}