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