static void verifyGroup2(IdStrategy strategy) throws Exception
    {
        Schema<Inner> schema = RuntimeSchema.getSchema(Inner.class, strategy);
        Inner message = new Inner().fillAll(true);

        byte[] data = ProtostuffIOUtil.toByteArray(message, schema, buf());
        Inner parsed = new Inner();
        ProtostuffIOUtil.mergeFrom(data, parsed, schema);

        assertTrue(!message.equals(parsed));

        assertTrue(message.propAll == parsed.propAll);

        assertTrue(message.prop1a != parsed.prop1a);
        assertTrue(message.prop1b != parsed.prop1b);

        assertTrue(message.prop2a == parsed.prop2a);
        assertTrue(message.prop2b == parsed.prop2b);

        assertTrue(message.prop3a != parsed.prop3a);
        assertTrue(message.prop3b != parsed.prop3b);

        assertTrue(message.prop1and2a == parsed.prop1and2a);
        assertTrue(message.prop1and2b == parsed.prop1and2b);

        assertTrue(message.prop1and3a != parsed.prop1and3a);
        assertTrue(message.prop1and3b != parsed.prop1and3b);

        assertTrue(message.prop2and3a == parsed.prop2and3a);
        assertTrue(message.prop2and3b == parsed.prop2and3b);
    }
The fields are filtered dependending on the Tag annotation {@link Tag#groupFilter()}.

@author David Yu
@created Feb 11, 2013
protostuff-runtime/src/test/java/io/protostuff/runtime/FilterFieldsByGroupTest.java