public <T> byte[] toByteArray(T message, Schema<T> schema)
    {
        return ProtostuffIOUtil.toByteArray(message, schema, buf());
    }
Serialization and deserialization test cases.

@author David Yu
@created Nov 18, 2009
protostuff-runtime/src/test/java/io/protostuff/runtime/SerDeserTest.java