@Test
public void deserializesResponseUsinGivenReader() throws IOException {

    // given
    ObjectReader mockedObjectReader = mock(ObjectReader.class);
    BlockingResponseHandler<Response> handler = new BlockingResponseHandler<>(
            mockedObjectReader, ex -> null);
    InputStream inputStream = mock(InputStream.class);
    // when
    handler.deserializeResponse(inputStream);
    // then
    verify(mockedObjectReader).readValue(any(InputStream.class));
}