HttpResponse implements Response, Disposable { public Class<?> getExpectedType() { return request.getMethodConfig().getMethod().getReturnType(); } 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();  }
@Test public void getExpectedTypeGetItFromMethodConfigMethod() throws IOException { assertSame(method.getReturnType(), toTest.getExpectedType()); }