}
private NamespaceContext test(String configName) throws MessageRouterException, IOException, SAXException, ConfigurationException {
ESBConfigUtil esbConfig = new ESBConfigUtil(getClass().getResourceAsStream("config.xml"));
ConfigTree configTree = esbConfig.getActionConfig("null-listener", configName);
SxcXPathRouter router = new SxcXPathRouter();
router.setConfigTree(configTree);
Map<String, RoutingRule> map = router.getRoutingMap();
assertEquals(3, map.size());
assertNotNull(map.get("scat-red"));
assertNotNull(map.get("scat-green"));
assertNotNull(map.get("scat-blue"));
return router.getNamespaceContext();
}