@Test
public void testInterruptFutureOnTimeout() throws InterruptedException, ExecutionException {

    // given
    InterruptibleCommand cmd = new InterruptibleCommand(new TestCircuitBreaker(), true);
    // when
    Future<Boolean> f = cmd.queue();
    // then
    Thread.sleep(500);
    assertTrue(cmd.hasBeenInterrupted());
}