}
@Test
public void testSelf() throws IOException, ClassNotFoundException {
Foo a = new Foo();
a.list.add( new TestInnerClass( 30 ) );
Foo b = (Foo) duplicateBySerialization( a );
assertEquals( Integer.valueOf( 6 ), a.integer );
assertEquals( Integer.valueOf( 7 ), b.integer );
assertEquals( a.list, b.list );
}