@Test(expected = IllegalArgumentException.class)
public void parametersOfDifferentLengthThrowsIllegalArgumentException() {

    distanceCalculator.getDistance(identicalA, new double[identicalA.length + 1]);
}