MimeResponseDelegate implements ResponseDelegate { public void setContentType(String contentType) { response.setContentType(contentType); } MimeResponseDelegate(MimeResponse response); OutputStream getOutputStream(); PrintWriter getPrintWriter(); Writer getWriter(); boolean isResponseCommitted(); void setContentType(String contentType);  }
@Test public void testSetContentType() { response.setContentType("text/html"); replay(response); delegate.setContentType("text/html"); verify(response); }