public void testFooNullFields() throws Exception
    {
        Foo b = new Foo();
        JsonIOUtil.mergeFrom(JsonIOUtil.DEFAULT_JSON_FACTORY.createJsonParser(
                "{\"someInt\":[null]" +
                        ",\"someString\":[null]" +
                        ",\"someBar\":[null]" +
                        ",\"someEnum\":[null]" +
                        ",\"someBytes\":[null]" +
                        ",\"someBoolean\":[null]" +
                        ",\"someFloat\":[null]" +
                        ",\"someDouble\":[null]" +
                        ",\"someLong\":[null]}"),
                b, b.cachedSchema(), false);

        assertNull(b.getSomeInt());
        assertNull(b.getSomeString());
        assertNull(b.getSomeBar());
        assertNull(b.getSomeEnum());
        assertNull(b.getSomeBytes());
        assertNull(b.getSomeBoolean());
        assertNull(b.getSomeFloat());
        assertNull(b.getSomeDouble());
        assertNull(b.getSomeLong());
    }
Testing for json ser/deser against messages.

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