createAssembledDirectory(ear)
.addPath("/weld/mcandweld/ear/weldandmc");
createMcLib(ear, "/weld/mcandweld/mc/nobootstrap", SimpleBeanWithSimpleWebBean.class);
createWeldLib(ear, "/weld/mcandweld/weld", SimpleWebBean.class);
Deployment deployment = createVFSDeployment(ear);
String installerName = deployment.getName() + "BootstrapBeanInstaller=SimpleBean";
mainDeployer.addDeployment(deployment);
mainDeployer.process();
try
{
DeploymentUnit earDU = getMainDeployerStructure().getDeploymentUnit(deployment.getName());
//Check that the flat deployment bean has been started
FlatDeployment flatDeployment = (FlatDeployment)getBean(DeployersUtils.getDeploymentBeanName(earDU));
assertNotNull(flatDeployment);