static void compareFoo()
    {
        io.protostuff.Foo foo1 = io.protostuff.SerializableObjects.foo;
        Schema<io.protostuff.Foo> schema1 = io.protostuff.Foo
                .getSchema();

        Foo foo2 = SerializableObjects.foo;
        Schema<Foo> schema2 = RuntimeSchema.getSchema(Foo.class);

        Schema<io.protostuff.Foo> schema3 = RuntimeSchema
                .getSchema(io.protostuff.Foo.class);

        byte[] byte1 = ProtostuffIOUtil.toByteArray(foo1, schema1, buf());
        byte[] byte2 = ProtostuffIOUtil.toByteArray(foo2, schema2, buf());
        byte[] byte3 = ProtostuffIOUtil.toByteArray(foo1, schema3, buf());

        assertArrayEquals(byte1, byte2);
        assertArrayEquals(byte1, byte3);
    }
Test that the runtime schema would have the same output as hand-coded/code-generated schema.

@author David Yu
protostuff-runtime/src/test/java/io/protostuff/runtime/CompatTest.java