public void testGetWrappedCacheableSessionValid() throws Exception {
final HttpSessionWrapper sessionWrapper = createMock(HttpSessionWrapper.class);
final HttpServletRequest request = createMock(HttpServletRequest.class);
final CacheableHttpSession session = createMock(CacheableHttpSession.class);
expect(request.getAttribute(MappedHttpServletRequest.class.getName()+".WRAPPED_SESSION")).andReturn(session);
expect(session.isValid()).andReturn(true);
replay(request, sessionWrapper, session);
MappedHttpServletRequest wrapper = new MappedHttpServletRequest(servletContext, request, sessionWrapper, null, applicationId);