### Question:
MimeResponseDelegate implements ResponseDelegate { public PrintWriter getPrintWriter() throws IOException { return response.getWriter(); } MimeResponseDelegate(MimeResponse response); OutputStream getOutputStream(); PrintWriter getPrintWriter(); Writer getWriter(); boolean isResponseCommitted(); void setContentType(String contentType);  }### Answer:
@Test public void testGetPrintWriter() throws IOException { PrintWriter os = createMock(PrintWriter.class); expect(response.getWriter()).andReturn(os); replay(response, os); assertEquals(os, delegate.getPrintWriter()); verify(response, os); }