assertEquals("Unexpected number of components", 2, deployment.getComponents().size());
assertNotNull("Missing expected component: TestDomain1", deployment.getComponent("TestDomain1"));
assertNotNull("Missing expected component: TestDomain2", deployment.getComponent("TestDomain2"));
// validate the components created upon deployment.
ComponentType type = new ComponentType("MCBean", "Security");
ManagedComponent component = managementView.getComponent("TestDomain1", type);
assertNotNull(component);
// verify that the component has the expected managed properties.
Map<String, ManagedProperty> properties = component.getProperties();