public void testEmptyBarDelimited() throws Exception
    {
        Bar barCompare = new Bar();

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

        ByteArrayInputStream in = new ByteArrayInputStream(data);
        Bar bar = new Bar();
        mergeDelimitedFrom(in, bar, bar.cachedSchema());

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