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

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

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

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

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

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

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

            for (int i = 0; i < testBooleanArray.length; i++)
                Assert.assertEquals("readBoolean()", testBooleanArray[i], capsule.readBoolean("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