protected void setUp() throws Exception {
super.setUp();
router = new ContentBasedRouter();
router.setRules(new RoutingRule[] {
new RoutingRule(
new XPathPredicate("/hello/@id = '1'"),
createServiceExchangeTarget(new QName("target1"))),
new RoutingRule(
new XPathPredicate("/hello/@id = '2'"),
createServiceExchangeTarget(new QName("target2"))),
new RoutingRule(
null,
createServiceExchangeTarget(new QName("target3")))
});
configurePattern(router);
activateComponent(router, "router");