@Test public void deserializeShouldDelegates() throws Exception { when(mockResponse.deserialize()).thenReturn(10); assertEquals(10, toTest.deserialize()); }
public <T> T deserialize() throws Exception { return delegate.<T>deserialize(); }
DelegatingResponse implements Response { public <T> T deserialize() throws Exception { return delegate.<T>deserialize(); } }
DelegatingResponse implements Response { public <T> T deserialize() throws Exception { return delegate.<T>deserialize(); } DelegatingResponse(Response delegate); }
DelegatingResponse implements Response { public <T> T deserialize() throws Exception { return delegate.<T>deserialize(); } 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(); }
DelegatingResponse implements Response { public <T> T deserialize() throws Exception { return delegate.<T>deserialize(); } 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();  }