static void verifyPrimary(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));
    }
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