public void testFooDelimited() throws Exception
    {
        Foo fooCompare = SerializableObjects.foo;

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        writeDelimitedTo(out, fooCompare);
        byte[] data = out.toByteArray();

        ByteArrayInputStream in = new ByteArrayInputStream(data);
        Foo foo = new Foo();
        mergeDelimitedFrom(in, foo, foo.cachedSchema());

        SerializableObjects.assertEquals(foo, fooCompare);
    }
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