JspRequest extends AbstractViewRequest { public Map<String, Object> getRequestScope() { if ((requestScope == null) && (pageContext != null)) { requestScope = new ScopeMap(new ScopeExtractor(pageContext, PageContext.REQUEST_SCOPE)); } return (requestScope); } JspRequest(DispatchRequest enclosedRequest,
            PageContext pageContext); static JspRequest createServletJspRequest(ApplicationContext applicationContext, PageContext pageContext); @Override List<String> getAvailableScopes(); @Override PrintWriter getPrintWriter(); @Override Writer getWriter(); Map<String, Object> getPageScope(); Map<String, Object> getRequestScope(); Map<String, Object> getSessionScope(); Map<String, Object> getApplicationScope(); PageContext getPageContext(); @Override Map<String, Object> getContext(String scope);  }
@Test public void testGetRequestScope() { replay(context, enclosedRequest); assertTrue(request.getRequestScope() instanceof ScopeMap); verify(context, enclosedRequest); }