Deployment a = createSimpleDeployment("A");
ContextInfo a1 = factory.addContext(a, "A1");
TestComponentMetaData a1c1 = new TestComponentMetaData("A1C1");
TestComponentMetaData a1c2 = new TestComponentMetaData("A1C2");
TestComponentMetaDataContainer md1 = new TestComponentMetaDataContainer(a1c1, a1c2);
addMetaData(a1, md1);
ContextInfo a2 = factory.addContext(a, "A2");
TestComponentMetaData a2c1 = new TestComponentMetaData("A2C1");
TestComponentMetaData a2c2 = new TestComponentMetaData("A2C2");
TestComponentMetaDataContainer md2 = new TestComponentMetaDataContainer(a2c1, a2c2);
addMetaData(a2, md2);
main.addDeployment(a);
main.process();
DeploymentUnit unit = getDeploymentUnit(main, "A");