public static <T> byte[] toByteArray(T message, Schema<T> schema) throws IOException
    {
        return GraphIOUtil.toByteArray(message, schema, buf());
    }
Test ser/deser of graph objects (references and cyclic dependencies).

@author David Yu
@created Dec 10, 2010
protostuff-core/src/test/java/io/protostuff/GraphTest.java