new QName("drools"), "endpoint");
endpoint.setRuleBaseResource(new ClassPathResource("router.drl"));
drools.setEndpoints(new DroolsEndpoint[] {endpoint });
jbi.activateComponent(drools, "servicemix-drools");
MockServiceComponent m1 = new MockServiceComponent(new QName("target1"), "endpoint");
m1.setResponseContent(new StringSource("<target1/>"));
MockServiceComponent m2 = new MockServiceComponent(new QName("target2"), "endpoint");
m2.setResponseContent(new StringSource("<target2/>"));
MockServiceComponent m3 = new MockServiceComponent(new QName("target3"), "endpoint");
m3.setResponseContent(new StringSource("<target3/>"));
jbi.activateComponent(m1, "mock1");
jbi.activateComponent(m2, "mock2");
jbi.activateComponent(m3, "mock3");
jbi.start();