public void testBazNullFields() throws Exception
    {
        Baz b = new Baz();
        JsonIOUtil.mergeFrom(JsonIOUtil.DEFAULT_JSON_FACTORY.createJsonParser(
                "{\"id\":null,\"name\":null,\"timestamp\":null}"),
                b, b.cachedSchema(), false);

        assertEquals(0, b.getId());
        assertNull(b.getName());
        assertEquals(0l, b.getTimestamp());
    }
Testing for json ser/deser against messages.

@author David Yu
@created Nov 20, 2009
protostuff-json/src/test/java/io/protostuff/JsonCoreSerDeserTest.java