public <T> byte[] toByteArray(T message, Schema<T> schema)
    {
        return YamlIOUtil.toByteArray(message, schema, buf());
    }
Serialization tests for yaml.

@author David Yu
@created Jun 28, 2010
protostuff-yaml/src/test/java/io/protostuff/YamlSerTest.java