application = new WicketTester(new MyMockWebApplication()
{
@Override
protected WebResponse newWebResponse(HttpServletResponse response)
{
return new BufferedWebResponse(response);
}
});
// same as above but uses different technique to login
application.setupRequestAndResponse();
application.processRequestCycle();