assertEquals("http://localhost/?str=%D6%D0%B9%FA", uri.addQueryData("str", "中国").render());
}
@Test
public void linkWithInterceptor_URIBroker() {
PullService pull = (PullService) factory.getBean("pullService");
// 确保uri interceptor在render之前没有被执行过
// 曾经的bug:pull service在logging为debug时,会提前执行uri.interceptors。
uri = (GenericURIBroker) pull.getContext().pull("linkWithInterceptor");
assertTrue(uri.addQueryData("path", "hello").render().startsWith("http://www.mydomain.com/hello?path=hello&r="));
assertTrue(uri.toString().startsWith("http://localhost/"));
assertTrue(uri.render().startsWith("http://www.mydomain.com/abc?r="));