static void checkLinks(ClubFounder founder)
    {
        assertNotNull(founder);

        assertEquals("some_glee_club_founder", founder.getName());

        Club glee = founder.getClub();

        assertNotNull(glee);

        assertTrue(glee.getStudentCount() == 3);

        assertTrue(glee.getPartnerClubCount() == 1);

        Student jake = glee.getStudent(0);
        Student john = glee.getStudent(1);
        Student jane = glee.getStudent(2);

        assertEquals("jake", jake.getName());
        assertEquals("john", john.getName());
        assertEquals("jane", jane.getName());

        assertTrue(jake.getClubCount() == 1);
        assertTrue(john.getClubCount() == 1);
        assertTrue(jane.getClubCount() == 1);

        // john and jane are cyclic to their club
        assertTrue(john.getClub(0) == glee);
        assertTrue(jane.getClub(0) == glee);

        // jake's club is linked to its private club only
        assertTrue(jake.getClub(0) != glee);

        Club privateClubOfJake = jake.getClub(0);
        assertNotNull(privateClubOfJake);

        assertTrue(privateClubOfJake.getStudentCount() == 1);
        assertTrue(privateClubOfJake.getStudent(0) == jake);

        // club-club cyclic link
        assertTrue(glee.getPartnerClub(0) == privateClubOfJake);
    }
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