@Test(expected = CancellationException.class)
public void testCancellationExceptionIsThrownWhenBlockingGet() throws InterruptedException, ExecutionException {

    final Promise<Void> promise = new DefaultPromise<Void>(ImmediateEventExecutor.INSTANCE);
    promise.cancel(false);
    promise.get();
}