@Override
        public void read(JmeImporter ji) throws IOException {
            InputCapsule capsule = ji.getCapsule(this);

            Assert.assertArrayEquals("readByteArray()", testByteArray, capsule.readByteArray("testByteArray", null));
            Assert.assertArrayEquals("readShortArray()", testShortArray, capsule.readShortArray("testShortArray", null));
            Assert.assertArrayEquals("readIntArray()", testIntArray, capsule.readIntArray("testIntArray", null));
            Assert.assertArrayEquals("readLongArray()", testLongArray, capsule.readLongArray("testLongArray", null));
            Assert.assertArrayEquals("readFloatArray()", testFloatArray, capsule.readFloatArray("testFloatArray", null), 0f);
            Assert.assertArrayEquals("readDoubleArray()", testDoubleArray, capsule.readDoubleArray("testDoubleArray", null), 0d);
            Assert.assertArrayEquals("readBooleanArray()", testBooleanArray, capsule.readBooleanArray("testBooleanArray", null));
            Assert.assertArrayEquals("readStringArray()", testStringArray, capsule.readStringArray("testStringArray", null));
            Assert.assertArrayEquals("readSavableArray()", testSavableArray, capsule.readSavableArray("testSavableArray", null));

            Assert.assertArrayEquals("readByteArray()", new byte[0], capsule.readByteArray("emptyByteArray", null));
            Assert.assertArrayEquals("readShortArray()", new short[0], capsule.readShortArray("emptyShortArray", null));
            Assert.assertArrayEquals("readIntArray()", new int[0], capsule.readIntArray("emptyIntArray", null));
            Assert.assertArrayEquals("readLongArray()", new long[0], capsule.readLongArray("emptyLongArray", null));
            Assert.assertArrayEquals("readFloatArray()", new float[0], capsule.readFloatArray("emptyFloatArray", null), 0f);
            Assert.assertArrayEquals("readDoubleArray()", new double[0], capsule.readDoubleArray("emptyDoubleArray", null), 0d);
            Assert.assertArrayEquals("readBooleanArray()", new boolean[0], capsule.readBooleanArray("emptyBooleanArray", null));
            Assert.assertArrayEquals("readStringArray()", new String[0], capsule.readStringArray("emptyStringArray", null));
            Assert.assertArrayEquals("readSavableArray()", new Savable[0], capsule.readSavableArray("emptySavableArray", null));

            Assert.assertArrayEquals("readByteArray2D()", testByteArray2D, capsule.readByteArray2D("testByteArray2D", null));
            Assert.assertArrayEquals("readShortArray2D()", testShortArray2D, capsule.readShortArray2D("testShortArray2D", null));
            Assert.assertArrayEquals("readIntArray2D()", testIntArray2D, capsule.readIntArray2D("testIntArray2D", null));
            Assert.assertArrayEquals("readLongArray2D()", testLongArray2D, capsule.readLongArray2D("testLongArray2D", null));
            Assert.assertArrayEquals("readFloatArray2D()", testFloatArray2D, capsule.readFloatArray2D("testFloatArray2D", null));
            Assert.assertArrayEquals("readDoubleArray2D()", testDoubleArray2D, capsule.readDoubleArray2D("testDoubleArray2D", null));
            Assert.assertArrayEquals("readBooleanArray2D()", testBooleanArray2D, capsule.readBooleanArray2D("testBooleanArray2D", null));
            Assert.assertArrayEquals("readStringArray2D()", testStringArray2D, capsule.readStringArray2D("testStringArray2D", null));
            Assert.assertArrayEquals("readSavableArray2D()", testSavableArray2D, capsule.readSavableArray2D("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