Mock httpServletRequestMock = new Mock(HttpServletRequest.class);
httpServletRequestMock.expects(new InvokeOnceMatcher()).method("getSession").with(new IsEqual(Boolean.TRUE));
HttpServletRequest request = (HttpServletRequest) httpServletRequestMock.proxy();
ServletActionContext.setRequest(request);
CreateSessionInterceptor interceptor = new CreateSessionInterceptor();
interceptor.intercept(new MockActionInvocation());
httpServletRequestMock.verify();