static void attachBody(Document document)
    {
        Body body = new Body(document, document);
        Div div = new Div(body, "firstDiv", document);
        div.name = "firstDiv";
        div.text = "TextArea";
        div.setAttribute("foo", "bar");
        div.display = Div.Display.INLINE;

        Div anotherDiv = new Div(body, "secondDiv", document);
        anotherDiv.name = "secondDiv";
        anotherDiv.display = Div.Display.BLOCK;

        TextArea ta = new TextArea(anotherDiv, "ta", document);
        ta.name = "ta";
        ta.rows = 10;
        ta.cols = 20;
    }
Test ser/deser of polymorphic graph objects (references and cyclic dependencies).

@author David Yu
@created Jan 19, 2011
protostuff-runtime/src/test/java/io/protostuff/runtime/PolymorphicRuntimeGraphTest.java