### Question:
HttpResponse implements Response, Disposable { public String getContentType() throws IOException { return resource.getContentType(); } HttpResponse(ResponseDeserializer baseResponseDeserializer, ResponseDeserializer customTypeResponseDeserializer, Request request, HttpResource resource); int getStatusCode(); String getStatusMessage(); String getContentType(); Charset getCharset(); String getContentEncoding(); Type getExpectedGenericType(); Class<?> getExpectedType(); Request getRequest(); InputStream asStream(); T deserialize(); T to(Class<T> type); T to(Class<T> type, Type genericType); void dispose();  }### Answer:
@Test public void getContentTypeGetItFromHttpResource() throws IOException { when(mockResource.getContentType()).thenReturn("value"); assertEquals("value", toTest.getContentType()); }