@Test
public void testGetPrintWriter() throws IOException {

    PrintWriter os = createMock(PrintWriter.class);
    expect(response.getWriter()).andReturn(os);
    replay(applicationContext, request, response, os);
    assertEquals(req.getPrintWriter(), os);
    verify(applicationContext, request, response, os);
}