@Test
void shouldNotFailAsyncResultEvenWhenRunFailed() throws Throwable
{

    // Given
    Connection connection = mock( Connection.class );
    Throwable error = new RuntimeException( "Hi there" );
    ResultCursorFactory cursorFactory = newResultCursorFactory( connection, failedFuture( error ), false );
    // When
    CompletionStage<AsyncResultCursor> cursorFuture = cursorFactory.asyncResult();
    // Then
    verifyRunCompleted( connection, cursorFuture );
}