java.util.Collection original = new java.util.ArrayList();
int n = 10;
for (int i = 0; i < n; i++)
original.add(new Foo(100 + i, "foo collection test"));
java.util.Collection echoedBack =
session.testReferenceSharingWithinCollection(original);
assertEquals(2 * n, echoedBack.size());
java.util.ArrayList originalList = (java.util.ArrayList)original;
java.util.ArrayList echoedList = (java.util.ArrayList)echoedBack;
for (int i = 0; i < n; i++)
{