static void compareBar()
    {
        io.protostuff.Bar bar1 = io.protostuff.SerializableObjects.bar;
        Schema<io.protostuff.Bar> schema1 = io.protostuff.Bar
                .getSchema();

        Bar bar2 = SerializableObjects.bar;
        Schema<Bar> schema2 = RuntimeSchema.getSchema(Bar.class);

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

        byte[] byte1 = ProtostuffIOUtil.toByteArray(bar1, schema1, buf());
        byte[] byte2 = ProtostuffIOUtil.toByteArray(bar2, schema2, buf());
        byte[] byte3 = ProtostuffIOUtil.toByteArray(bar1, 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