@Test
void shouldCompleteResetFutureWhenFailureResponseArrives()
{

    EmbeddedChannel channel = newChannel();
    NetworkConnection connection = newConnection( channel );
    CompletableFuture<Void> resetFuture = connection.reset().toCompletableFuture();
    channel.runPendingTasks();
    assertFalse( resetFuture.isDone() );
    messageDispatcher( channel ).handleFailureMessage( "Neo.TransientError.Transaction.Terminated", "Message" );
    assertTrue( resetFuture.isDone() );
    assertFalse( resetFuture.isCompletedExceptionally() );
}