MimeResponseDelegate implements ResponseDelegate { public boolean isResponseCommitted() { return response.isCommitted(); } MimeResponseDelegate(MimeResponse response); OutputStream getOutputStream(); PrintWriter getPrintWriter(); Writer getWriter(); boolean isResponseCommitted(); void setContentType(String contentType);  }
@Test public void testIsResponseCommitted() { expect(response.isCommitted()).andReturn(true); replay(response); assertTrue(delegate.isResponseCommitted()); verify(response); }