@Test
public void canBeInterrupted() {

    // given
    final BlockingResponseHandler<Response> handler = new BlockingResponseHandler<>(
            mock(ObjectReader.class),
            ex -> null);
    Thread thread = new Thread(() -> handler.getResult());
    // when
    thread.start();
    thread.interrupt();
    // then
    assertTrue(thread.isInterrupted());
}