Map<String, String> initParams = new HashMap<String, String>();
initParams.put("initParameter1", "initParameterValue1");
EasyMock.expect(applicationContext.getInitParams()).andReturn(
initParams);
MockHttpSession session = new MockHttpSession(servletContext);
MockHttpServletRequest request = new MockHttpServletRequest(session);
MockHttpServletResponse response = new MockHttpServletResponse();
request.addHeader("Content-Type", "text/html");
request.addParameter("myParam", "value1");
request.addParameter("myParam", "value2");
context = new ServletTilesRequestContext(applicationContext, request,
response);
Map<String, Object> requestScope = context.getRequestScope();