@Test
public void testGetWriter() {

    JspWriter writer = createMock(JspWriter.class);
    expect(context.getOut()).andReturn(writer);
    replay(context, enclosedRequest, writer);
    assertEquals(writer, request.getWriter());
    verify(context, enclosedRequest, writer);
}