@Test
public void testGetPrintWriter() throws IOException {

    Request wrappedRequest = createMockRequest();
    PrintWriter writer = createMock(PrintWriter.class);
    expect(wrappedRequest.getPrintWriter()).andReturn(writer);
    replay(wrappedRequest, writer);
    RequestWrapper request = createRequestWrapper(wrappedRequest);
    assertEquals(writer, request.getPrintWriter());
    verify(wrappedRequest, writer);
}