private static void assertSplineEquals(Spline s1, Spline s2) {
        Assert.assertEquals(s1.getType(), s2.getType());
        Assert.assertEquals(s1.isCycle(), s2.isCycle());

        Assert.assertEquals(
                s1.getBasisFunctionDegree(), s2.getBasisFunctionDegree());
        assertListEquals(s1.getControlPoints(), s2.getControlPoints());
        Assert.assertEquals(s1.getCurveTension(), s2.getCurveTension(), 0f);
        assertListEquals(s1.getKnots(), s2.getKnots());

        if (s1.getType() == Spline.SplineType.Nurb) {
            // These methods throw NPEs on non-NURB splines.
            Assert.assertEquals(s1.getMaxNurbKnot(), s2.getMaxNurbKnot(), 0f);
            Assert.assertEquals(s1.getMinNurbKnot(), s2.getMinNurbKnot(), 0f);
        }

        assertListEquals(s1.getSegmentsLength(), s2.getSegmentsLength());
        Assert.assertEquals(
                s1.getTotalLength(), s2.getTotalLength(), 0f);
        Assert.assertArrayEquals(s1.getWeights(), s2.getWeights(), 0f);
    }
Verify that the specified splines are equivalent.

@param s1 the first spline to compare (not null, unaffected)
@param s2 the 2nd split to compare (not null, unaffected)
jme3-core/src/test/java/com/jme3/math/SplineTest.java