HttpChannelResponseHttpResource implements HttpResource { public String getStatusMessage() throws IOException { return response.getStatusMessage(); } HttpChannelResponseHttpResource(HttpChannel.Response response); String getContentType(); Charset getCharset(); String getContentEncoding(); InputStream getEntity(); String getStatusMessage(); int getStatusCode(); void close();  }
@Test public void getStatusMessageShouldReturnResponseOne() throws IOException { when(mockResponse.getStatusMessage()).thenReturn("value"); HttpChannelResponseHttpResource toTest = newToTest(); assertEquals("value", toTest.getStatusMessage()); }