public void testEmptyBar() throws Exception
    {
        Bar bar = new Bar();

        byte[] output = toByteArray(bar);

        Bar parsedBar = new Bar();
        mergeFrom(output, 0, output.length, parsedBar, parsedBar.cachedSchema());
    }
Deserializes from the byte array and data is merged/saved to the message.
protostuff-kvp/src/test/java/io/protostuff/NoNestedMessageTest.java