.setParameter("ContentType", "text/html")
.setParameter("template_update_delay", "0")
.setParameter("default_encoding", "ISO-8859-1")
.setParameter("number_format", "0.##########").build();
ServletRequest request = createMock(ServletRequest.class);
HttpServletRequest httpRequest = createMock(HttpServletRequest.class);
HttpServletResponse response = createMock(HttpServletResponse.class);
StringWriter stringWriter = new StringWriter();
PrintWriter printWriter = new PrintWriter(stringWriter);
HttpRequestHashModel requestModel = new HttpRequestHashModel(httpRequest, response, objectWrapper);
HttpRequestParametersHashModel parametersModel = new HttpRequestParametersHashModel(httpRequest);
expect(request.getRequest()).andReturn(httpRequest);
expect(request.getResponse()).andReturn(response);
expect(request.getPrintWriter()).andReturn(printWriter);
expect(httpRequest.getSession(false)).andReturn(null);
expect(httpRequest.getAttribute(ATTR_REQUEST_MODEL)).andReturn(requestModel);
expect(httpRequest.getAttribute(ATTR_REQUEST_PARAMETERS_MODEL)).andReturn(parametersModel);
response.setContentType("text/html; charset=ISO-8859-1");
response.setHeader(eq("Cache-Control"), isA(String.class));