ManagedObject component1 = (ManagedObject) ((GenericValue) iterator.next()).getValue();
ManagedObject component2 = (ManagedObject) ((GenericValue) iterator.next()).getValue();
// create the persistence information
TestMgtComponentImpl tComp1 = new TestMgtComponentImpl(component1);
PersistenceRoot root = getPersistenceFactory().updateComponent(mo, tComp1);
TestMgtComponentImpl tComp2 = new TestMgtComponentImpl(component2);
root = getPersistenceFactory().updateComponent(root, mo, tComp2);
assertNotNull(root.getComponents());
// serialize / deserialize
PersistenceRoot persisted = restore(root);
// Create a new root attachment with empty components
TestDeployment test = new TestDeployment();
test.getComponents().add(createComponentMetaData("component1", null, null));
test.getComponents().add(createComponentMetaData("component2", null, null));