JspRequest extends AbstractViewRequest { @Override protected void doInclude(String path) throws IOException { try { pageContext.include(path, false); } catch (ServletException e) { throw ServletUtil.wrapServletException(e, "JSPException including path '" + path + "'."); } } 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 testDoInclude() throws ServletException, IOException { context.include("/my/path", false); replay(context, enclosedRequest); request.doInclude("/my/path"); verify(context, enclosedRequest); }
@Test(expected = IOException.class) public void testDoIncludeException() throws ServletException, IOException { context.include("/my/path", false); expectLastCall().andThrow(new ServletException()); replay(context, enclosedRequest); request.doInclude("/my/path"); verify(context, enclosedRequest); }