@Test
public void testGetWriter() throws IOException {

    PrintWriter os = createMock(PrintWriter.class);
    expect(response.getWriter()).andReturn(os);
    replay(response, os);
    assertEquals(os, delegate.getWriter());
    verify(response, os);
}