@Test
    public void saveAndLoadSplines() {
        // Serialize and deserialize a Bezier spline:
        {
            Spline test1 = createBezier();
            Spline copy1 = BinaryExporter.saveAndLoad(assetManager, test1);
            assertSplineEquals(test1, copy1);
        }

        // Serialize and deserialize a NURB spline:
        {
            Spline test2 = createNurb();
            Spline copy2 = BinaryExporter.saveAndLoad(assetManager, test2);
            assertSplineEquals(test2, copy2);
        }

        // Serialize and deserialize a Catmull-Rom spline:
        {
            Spline test3 = createCatmullRom();
            Spline copy3 = BinaryExporter.saveAndLoad(assetManager, test3);
            assertSplineEquals(test3, copy3);
        }

        // Serialize and deserialize a linear spline:
        {
            Spline test4 = createLinear();
            Spline copy4 = BinaryExporter.saveAndLoad(assetManager, test4);
            assertSplineEquals(test4, copy4);
        }

        // Serialize and deserialize a default spline:
        {
            Spline test5 = new Spline();
            Spline copy5 = BinaryExporter.saveAndLoad(assetManager, test5);
            assertSplineEquals(test5, copy5);
        }
    }
Verifies that spline serialization/deserialization works correctly.
jme3-core/src/test/java/com/jme3/math/SplineTest.java