@Test
public void testGetWriter() throws IOException {

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