template = org.easymock.classextension.EasyMock.createMock(Template.class);
stack = EasyMock.createNiceMock(ValueStack.class);
setUpStack();
stackContext = new HashMap();
context = new TemplateRenderingContext(template, writer, stack, map, null);
stackContext.put(Component.COMPONENT_STACK, new Stack());
request = EasyMock.createNiceMock(HttpServletRequest.class);
EasyMock.expect(request.getContextPath()).andReturn("/some/path").anyTimes();
response = EasyMock.createNiceMock(HttpServletResponse.class);