ServletContext context = webApplication.getServletContext();
MockHttpSession httpSession = new MockHttpSession(context);
MockServletRequest servletRequest = new MockServletRequest(webApplication, httpSession, context);
callback.configure(new MockRequest(servletRequest));
servletRequest.setDefaultHeaders();
MockHttpServletResponse servletResponse = new MockHttpServletResponse(servletRequest);
final WebRequest request = VisibilityHelper.newWebRequest(webApplication, servletRequest);