public void testComponentInstallation() throws Exception { CamelJbiComponent component = new CamelJbiComponent(); container.activateComponent(component, "#ServiceMixComponent#"); // deploy two sus here deploySu(component, "su3"); JbiComponent jbiComponent = component.getJbiComponent("su3"); assertNotNull("JbiComponent should not be null ", jbiComponent); CamelContext su3CamelContext = jbiComponent.getCamelContext(); assertNotNull("We should get a camel context here ", su3CamelContext); deploySu(component, "su6"); jbiComponent = component.getJbiComponent("su6"); assertNotNull("JbiComponent should not be null ", jbiComponent); CamelContext su6CamelContext = jbiComponent.getCamelContext(); assertNotNull("We should get a camel context here ", su6CamelContext); assertTrue( "Here should be two different camel contexts", !su3CamelContext.equals(su6CamelContext)); // deploy two sus here undeploySu(component, "su3"); undeploySu(component, "su6"); }