Exemplo n.º 1
0
 public void testPropertyExtractorConfig() throws Exception {
   Service d = muleContext.getRegistry().lookupService("propertyExtractorTestComponent");
   assertNotNull(d);
   OutboundRouterCollection router = d.getOutboundRouter();
   assertNotNull(router);
   List routers = router.getRouters();
   assertNotNull(routers);
   assertEquals(1, routers.size());
   AbstractOutboundRouter theRouter = (AbstractOutboundRouter) routers.get(0);
   // the one we put in the config
   assertTrue(
       theRouter.getPropertyExtractor() instanceof CorrelationPropertiesExpressionEvaluator);
 }