Args.notNull(page, "page");
Application application = page.getApplication();
HttpSession httpSession = wicketTester.getHttpSession();
MockHttpServletRequest request = new MockHttpServletRequest(application, httpSession, null);
request.addParameter("pageId", page.getId());
request.addParameter(WebRequest.PARAM_AJAX_BASE_URL, ".");
return request;
}
/**
* Setups TestWebSocketConnection.