portletContext = new MockContext();
portletContext.setMajorVersion(getMajorVersion());
actionContext.put(StrutsStatics.STRUTS_PORTLET_CONTEXT, portletContext);
portletRequest = new MockPortletRequest(portletContext);
portletResponse = new MockStateAwareResponse();
portletSession = new MockPortletSession();
portletRequest.setSession(portletSession);
actionContext.setSession(createSession());
actionContext.put(PortletConstants.REQUEST, portletRequest);
actionContext.put(PortletConstants.RESPONSE, portletResponse);