JspRequest extends AbstractViewRequest { @Override public PrintWriter getPrintWriter() { return new JspPrintWriterAdapter(pageContext.getOut()); } 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 testGetPrintWriter() { JspWriter writer = createMock(JspWriter.class); expect(context.getOut()).andReturn(writer); replay(context, enclosedRequest, writer); assertEquals(writer, ((JspPrintWriterAdapter) request.getPrintWriter()) .getJspWriter()); verify(context, enclosedRequest, writer); }