@Override
        public void write(JmeExporter je) throws IOException {
            OutputCapsule capsule = je.getCapsule(this);

            capsule.write(testByteArray, "testByteArray", null);
            capsule.write(testShortArray, "testShortArray", null);
            capsule.write(testIntArray, "testIntArray", null);
            capsule.write(testLongArray, "testLongArray", null);
            capsule.write(testFloatArray, "testFloatArray", null);
            capsule.write(testDoubleArray, "testDoubleArray", null);
            capsule.write(testBooleanArray, "testBooleanArray", null);
            capsule.write(testStringArray, "testStringArray", null);
            capsule.write(testSavableArray, "testSavableArray", null);

            capsule.write(new byte[0], "emptyByteArray", null);
            capsule.write(new short[0], "emptyShortArray", null);
            capsule.write(new int[0], "emptyIntArray", null);
            capsule.write(new long[0], "emptyLongArray", null);
            capsule.write(new float[0], "emptyFloatArray", null);
            capsule.write(new double[0], "emptyDoubleArray", null);
            capsule.write(new boolean[0], "emptyBooleanArray", null);
            capsule.write(new String[0], "emptyStringArray", null);
            capsule.write(new Savable[0], "emptySavableArray", null);
            
            capsule.write(testByteArray2D, "testByteArray2D", null);
            capsule.write(testShortArray2D, "testShortArray2D", null);
            capsule.write(testIntArray2D, "testIntArray2D", null);
            capsule.write(testLongArray2D, "testLongArray2D", null);
            capsule.write(testFloatArray2D, "testFloatArray2D", null);
            capsule.write(testDoubleArray2D, "testDoubleArray2D", null);
            capsule.write(testBooleanArray2D, "testBooleanArray2D", null);
            capsule.write(testStringArray2D, "testStringArray2D", null);
            capsule.write(testSavableArray2D, "testSavableArray2D", null);
        }
Test suite for implementations of the JmeExporter and JmeImporter interfaces.
There are tests here for all write* and read* methods of the OutputCapsule and InputCapsule interfaces respectively.
jme3-plugins/src/test/java/com/jme3/export/InputOutputCapsuleTest.java