private Map<String, Object> assertRequest() {
Map<String, Object> tools = pull.getTools();
assertEquals(4, tools.size());
// 从pull service中直接取得
URIBroker u1 = (URIBroker) tools.get("link2");
URIBroker u2 = (URIBroker) tools.get("linkCharset");
// 通过uris tool取得
URIBrokerTool.Helper tool = (URIBrokerTool.Helper) tools.get("uris");
URIBroker u1_2 = tool.get("link2");
URIBroker u2_2 = tool.get("linkCharset");
// 查看渲染结果,很明显,request已经被注入
assertEquals("http://myuser2:mypass2@myservername2:1234/aaa/a1/bbb/ccc/ddd"
+ "?aaa=1111&bbb=2222&ccc=3333#myreference2", u1.toString());
assertEquals("http://localhost/", u2.toString());
assertEquals(u1_2.toString(), u1.toString());
assertEquals(u2_2.toString(), u2.toString());
// 通过uri.get()方法取得broker,有cache。
assertSame(u1_2, tool.get("link2"));
assertSame(u2_2, tool.get("linkCharset"));