tester.getServletRequest().setPath("/index.html");
}
public void testWebExternalResourceRequestTarget() throws Exception
{
WebExternalResourceRequestTarget rt = new WebExternalResourceRequestTarget("/index.html");
WebRequestCycle cycle = tester.createRequestCycle();
cycle.setRequestTarget(rt);
tester.processRequestCycle(cycle);
assertTrue(getContentType().startsWith("text/html"));
// WebExternalResourceRequestTarget does not set Content-Length