request.setAttribute(Globals.MESSAGES_KEY, resources);
request.setAttribute(HibernateSessionFilter.SESSION_ATTRIBUTE_KEY, hibernateSession);
pageContext = new MockPageContext();
pageContext.getRequestReturn = request;
pageContext.getResponseReturn = response;
servletConfig = new ServletConfigSimulator();
FieldAccessor.set(actionServlet, "config", servletConfig);
pageContext.getServletConfigReturn = servletConfig;
servletContext = new XServletContextSimulator();
servletContext.setAttribute(Globals.MODULE_KEY, new ModuleConfigImpl(""));
FieldAccessor.set(servletConfig, "context", servletContext);