SwitchYardBuilder implements EventObserver { public SwitchYard getSwitchYard() { return _switchYard; } SwitchYardBuilder(); void init(ServiceDomainManager domainManager); void destroy(); SwitchYard getSwitchYard(); ServiceDomainManager getDomainManager(); @Override void notify(EventObject event);  }
@Test public void testNoComponentService() throws Exception { Deployment testDeployment = new MockDeployment( new ModelPuller<SwitchYardModel>().pull("switchyard_multiappweb.xml", getClass()), QName.valueOf("{urn:switchyard-quickstart-demo:multiapp:0.1.0}web"), _domainManager); _domainManager.getEventManager().publish(new ApplicationDeployedEvent(testDeployment)); Assert.assertEquals(2, _builder.getSwitchYard().getApplications().size()); _domainManager.getEventManager().publish(new ApplicationUndeployedEvent(testDeployment)); Assert.assertEquals(1, _builder.getSwitchYard().getApplications().size()); }