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

            for (int i = 0; i < testStringArray.length; i++) {
                capsule.write(testStringArray[i], "test_string_" + i, 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