private static <T> byte[] serializeGraph(T object)
    {
        @SuppressWarnings("unchecked")
        Class<T> clazz = (Class<T>) object.getClass();
        Schema<T> schema = RuntimeSchema.getSchema(clazz);
        return GraphIOUtil.toByteArray(object, schema, LinkedBuffer.allocate());
    }
Test unknown fields encoded with {@link WireFormat#WIRETYPE_REFERENCE}.

@author David Yu
@created May 20, 2016
protostuff-runtime/src/test/java/io/protostuff/runtime/RuntimeGraphUnknownFieldTest.java