I'm using Wicket 1.2. I'm using WicketTester, but my Page requires certain request headers. What is the appropriate way to add headers to the MockHttpServletRequest (via addHeaders(...) I assume) before the Page is rendered?
I tried:
tester.getServletRequest().addHeader("host", "www.myhost.com");
tester.startPage(MyPage.class);
tester.assertRenderedPage(MyPage.class);
but that doesn't work; request.getHeader("host") returns null in
MyPage.onAfterRender().
Thanks,
Nate
