attachments.addAttachment("KernelDeployerTest", deployment);
assertDeploy(context);
ControllerContext ctx = controller.getInstalledContext("Test");
ScopeInfo scopeInfo = ctx.getScopeInfo();
MainDeployerStructure mds = (MainDeployerStructure) main;
DeploymentUnit unit = mds.getDeploymentUnit("KernelDeployerTest", true);
DeploymentUnit component = unit.getComponent("Test");
assertScopeKeys(component.getScope(), scopeInfo.getScope());
assertScopeKeys(component.getMutableScope(), scopeInfo.getMutableScope());
MetaData md = ctx.getScopeInfo().getMetaData();
assertEquals(testMetaDataDeployer, md.getMetaData("test"));
assertEquals(testInstanceMetaDataDeployer, md.getMetaData("instance"));