@Test
void shouldConvertCanceledNettyFutureToCompletionStage() throws Exception
{

    DefaultPromise<String> promise = new DefaultPromise<>( ImmediateEventExecutor.INSTANCE );
    promise.cancel( true );
    CompletableFuture<String> future = Futures.asCompletionStage( promise ).toCompletableFuture();
    assertTrue( future.isCancelled() );
    assertTrue( future.isCompletedExceptionally() );
    assertThrows( CancellationException.class, future::get );
}