static Foo newFoo()
    {
        // one-instance of Baz.

        Baz baz = new Baz();
        baz.setId(100);

        Bar bar1 = new Bar();
        bar1.setSomeInt(1);
        bar1.setSomeBaz(baz);

        Bar bar2 = new Bar();
        bar2.setSomeInt(2);
        bar2.setSomeBaz(baz);

        ArrayList<Bar> bars = new ArrayList<Bar>();
        bars.add(bar1);
        bars.add(bar2);

        Foo foo = new Foo();
        foo.setSomeBar(bars);

        return foo;
    }
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