static void verifyGraph(LinkedElementContainer container)
    {
        assertNotNull(container);

        LinkedElement element = container.element;
        assertTrue(element instanceof HotElement);

        HotElement hot = (HotElement) element;
        assertEquals(hot.name, "hot");

        assertTrue(hot.next instanceof ColdElement);

        ColdElement cold = (ColdElement) hot.next;
        assertEquals(cold.name, "cold");

        assertTrue(cold == cold.next);
    }
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