DeployerClient main = createMainDeployer(componentDeployer1, componentDeployer2, realDeployer1, realDeployer2);
Deployment deployment = createSimpleDeployment("deploy");
MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
TestDeployment1 deployment1 = new TestDeployment1();
TestMetaData1 component1 = new TestMetaData1("TestBean1");
deployment1.addBean(component1);
attachments.addAttachment(TestDeployment1.class, deployment1);
TestDeployment2 deployment2 = new TestDeployment2();
TestMetaData2 component2 = new TestMetaData2("TestBean2");
deployment2.addBean(component2);