message.getBody().add("y", GREEN_MESSAGE);
test_routing(message, Arrays.asList(GREEN_MESSAGE));
}
public void test_routing(Message message, List objectLists) throws IOException, SAXException, ConfigurationException, MessageRouterException {
ESBConfigUtil esbConfig = new ESBConfigUtil(getClass().getResourceAsStream("config.xml"));
ConfigTree configTree = esbConfig.getActionConfig("null-listener", "5");
SxcXPathRouter router = new SxcXPathRouter();
router.setConfigTree(configTree);
List<String> destinations = router.route(null, false, message, objectLists);