private void checkKnownFields(TestMessage instance)
    {
        Assert.assertEquals(42, instance.field1);
        Assert.assertEquals("testValue", instance.field2);
    }
Test for ignoring unknown fields during de-seralization
protostuff-json/src/test/java/io/protostuff/JsonUnknownFieldTest.java