HttpChannelResponseHttpResource implements HttpResource { public void close() throws IOException { response.close(); } HttpChannelResponseHttpResource(HttpChannel.Response response); String getContentType(); Charset getCharset(); String getContentEncoding(); InputStream getEntity(); String getStatusMessage(); int getStatusCode(); void close();  }
@Test public void closeShouldCloseResponse() throws IOException { newToTest().close(); verify(mockResponse).close(); }