@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);
}