public void testCloneInterpolatedFunction() throws CloneNotSupportedException {
float[] x = new float[]{0, 1};
float[] y = new float[]{1, 2};
InterpolatedFunction f = new InterpolatedFunction(x, y);
InterpolatedFunction f2 = (InterpolatedFunction) f.clone();
f.setX(new float[]{0, 5});
assertTrue(f2.getX()[1] < 2);
}