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

            for (int i = 0; i < testByteArray.length; i++)
                capsule.write(testByteArray[i], "test_byte_" + i, (byte) 0);

            for (int i = 0; i < testShortArray.length; i++)
                capsule.write(testShortArray[i], "test_short_" + i, (short) 0);

            for (int i = 0; i < testIntArray.length; i++)
                capsule.write(testIntArray[i], "test_int_" + i, 0);

            for (int i = 0; i < testLongArray.length; i++)
                capsule.write(testLongArray[i], "test_long_" + i, 0l);

            for (int i = 0; i < testFloatArray.length; i++)
                capsule.write(testFloatArray[i], "test_float_" + i, 0f);

            for (int i = 0; i < testDoubleArray.length; i++)
                capsule.write(testDoubleArray[i], "test_double_" + i, 0d);

            for (int i = 0; i < testBooleanArray.length; i++)
                capsule.write(testBooleanArray[i], "test_boolean_" + i, false);
        }
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