    @Test
    public void testUsesDelegateWhenReturnTypeNotInputStream() throws Exception {

        String returned = "string";

        when(delegate.decode(any(), any())).thenReturn(returned);
        Response response = Response.create(200, "OK", ImmutableMap.of(), returned, StandardCharsets.UTF_8);
        String decodedObject = (String) inputStreamDelegateDecoder.decode(response, String.class);
        assertThat(decodedObject).isEqualTo(returned);
    }