public <T> int writeTo(OutputStream out, T message, Schema<T> schema) throws IOException
    {
        return YamlIOUtil.writeTo(out, message, schema, buf());
    }
Serialization tests for yaml.

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