public void testJavaSerializableGraphIOUtil() throws Exception
    {
        ClubFounder founder = new ClubFounder();

        StringBuilder b = new StringBuilder();
        for (int i = 0; i < 25; i++)
            b.append("1234567890");

        // 250 length string
        // ~253 length message

        founder.setName(b.toString());

        WrapsClubFounder wrapper = new WrapsClubFounder(founder);

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        ObjectOutputStream oout = new ObjectOutputStream(out);
        oout.writeObject(wrapper);

        byte[] coded = out.toByteArray();

        ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(coded));
        WrapsClubFounder parsedWrapper = (WrapsClubFounder) in.readObject();

        assertEquals(founder.getName(), parsedWrapper.getClubFounder().getName());
    }
Foo shares field numbers (and type) with Bar except that foo's fields are all repeated (w/c is alright). Bar also
shares the same field and type (1&2) with Baz.
protostuff-core/src/test/java/io/protostuff/SerDeserTest.java