@Test
public void testGetOutputStream() throws IOException {

    Request wrappedRequest = createMockRequest();
    OutputStream stream = createMock(OutputStream.class);
    expect(wrappedRequest.getOutputStream()).andReturn(stream);
    replay(wrappedRequest, stream);
    RequestWrapper request = createRequestWrapper(wrappedRequest);
    assertEquals(stream, request.getOutputStream());
    verify(wrappedRequest, stream);
}