@Test
    public void testByteArrayCompat()
    {
        PojoWithByteArray pwba = new PojoWithByteArray();
        PojoWithByteString pwbs = new PojoWithByteString();
        fill(pwba);
        fill(pwbs);

        byte[] b1 = ProtostuffIOUtil.toByteArray(pwba,
                RuntimeSchema.getSchema(PojoWithByteArray.class), buf());

        byte[] b2 = ProtostuffIOUtil.toByteArray(pwbs,
                RuntimeSchema.getSchema(PojoWithByteString.class), buf());

        assertTrue(Arrays.equals(b1, b2));
    }
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