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

	// given
	InterruptibleCommand cmd = new InterruptibleCommand(new TestCircuitBreaker(), true, false, 1000);
    // when
    Future<Boolean> f = cmd.queue();
    Thread.sleep(500);
    f.cancel(true);
    Thread.sleep(500);
    // then
    try {
    	f.get();
    	fail("Should have thrown a CancellationException");
    } catch (CancellationException e) {
    	assertFalse(cmd.hasBeenInterrupted());
    }
}