TestDeploymentDeployer1 componentDeployer1 = new TestDeploymentDeployer1();
TestRealDeployer1 realDeployer1 = new TestRealDeployer1();
DeployerClient main = createMainDeployer(componentDeployer1, realDeployer1);
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);
main.addDeployment(deployment);
main.process();
assertEquals(Collections.singletonList(component1), realDeployer1.deployed);