elements[0] = new DummyObjectData(element0Oid, TestPojo.class.getName(), false, new TestProxyVersion(3));
final TestProxyOid element1Oid = new TestProxyOid(678, true);
elements[1] = new DummyObjectData(element1Oid, TestPojo.class.getName(), false, new TestProxyVersion(7));
final TestProxyOid collectionOid = new TestProxyOid(123);
final CollectionData data = new DummyCollectionData(collectionOid, Vector.class.getName(), TestPojo.class.getName(), elements, new TestProxyVersion());
final ObjectAdapter adapter = deserializer.deserialize(data);
final Vector restoredCollection = (Vector) adapter.getObject();
assertEquals(2, restoredCollection.size());