@Test
public void testGetOutputStream() throws IOException {

    ServletOutputStream os = createMock(ServletOutputStream.class);
    expect(response.getOutputStream()).andReturn(os);
    replay(applicationContext, request, response, os);
    assertEquals(req.getOutputStream(), os);
    verify(applicationContext, request, response, os);
}