@Test
void shouldConvertFailedNettyFutureToCompletionStage() throws Exception
{

    RuntimeException error = new RuntimeException( "Hello" );
    FailedFuture<Object> nettyFuture = new FailedFuture<>( ImmediateEventExecutor.INSTANCE, error );
    CompletableFuture<Object> future = Futures.asCompletionStage( nettyFuture ).toCompletableFuture();
    assertTrue( future.isCompletedExceptionally() );
    ExecutionException e = assertThrows( ExecutionException.class, future::get );
    assertEquals( error, e.getCause() );
}