* @throws Exception
*/
public void testUriInsertedIntoRequestScope() throws Exception {
request.setAttribute(Constants.BLOG_KEY, BlogManager.getInstance().getMultiBlog());
request.setRequestUri("/somecontext");
filter.doFilter(request, response, new MockFilterChain());
assertEquals("/", request.getAttribute(Constants.EXTERNAL_URI));
request.setRequestUri("/somecontext/rss.xml");
filter.doFilter(request, response, new MockFilterChain());
assertEquals("/rss.xml", request.getAttribute(Constants.EXTERNAL_URI));
request.setRequestUri("/somecontext/blog1/rss.xml");
filter.doFilter(request, response, new MockFilterChain());
assertEquals("/rss.xml", request.getAttribute(Constants.EXTERNAL_URI));
request.setRequestUri("/somecontext/blog1/images/myImage.jpg");
filter.doFilter(request, response, new MockFilterChain());
assertEquals("/images/myImage.jpg", request.getAttribute(Constants.EXTERNAL_URI));
}