### Question:
DelegatingResponse implements Response { public Type getExpectedGenericType() { return delegate.getExpectedGenericType(); } DelegatingResponse(Response delegate); Request getRequest(); int getStatusCode(); String getContentType(); Charset getCharset(); String getContentEncoding(); Type getExpectedGenericType(); Class<?> getExpectedType(); T deserialize(); T to(Class<T> type); T to(Class<T> type, Type genericType); InputStream asStream(); void dispose();  }### Answer:
@Test public void getExpectedGenericTypeShouldDelegates() throws Exception { when(mockResponse.getExpectedGenericType()).thenReturn((Type)Object.class); assertEquals(Object.class, toTest.getExpectedGenericType()); }