expect(template.getMacros()).andReturn(new HashMap<Object, Object>());
TilesRequestContextFactory parentFactory = createMock(TilesRequestContextFactory.class);
TilesApplicationContext applicationContext = createMock(TilesApplicationContext.class);
HttpServletRequest request = createMock(HttpServletRequest.class);
HttpServletResponse response = createMock(HttpServletResponse.class);
ObjectWrapper wrapper = createMock(ObjectWrapper.class);
HttpRequestHashModel requestModel = new HttpRequestHashModel(request, response, wrapper);
expect(model.get("Request")).andReturn(requestModel);
TilesRequestContext enclosedRequest = createMock(TilesRequestContext.class);
expect(parentFactory.createRequestContext(applicationContext, request, response)).andReturn(enclosedRequest);
replay(template, model, parentFactory, applicationContext, request, response, wrapper);