ApplicationContext factory = new XmlApplicationContext(new FileSystemResource(new File(srcdir,
"services-uris.xml")));
URIBrokerService uris = (URIBrokerService) factory.getBean("uris");
TurbineContentURIBroker link1 = (TurbineContentURIBroker) uris.getURIBroker("tclink4");
assertEquals("http://taobao.com/mycontext/mycomponent/myprefix/mycontent.jpg?a=1&b=2", link1.toString());
TurbineContentURIBroker link2 = (TurbineContentURIBroker) uris.getURIBroker("tclink5");
assertEquals("http://taobao.com/?a=1&b=2", link2.toString());
}