@Test
void shouldNotReleaseConnectionWhenBeginSucceeds()
{

    Connection connection = connectionWithBegin( handler -> handler.onSuccess( emptyMap() ) );
    UnmanagedTransaction tx = new UnmanagedTransaction( connection, new DefaultBookmarkHolder(), UNLIMITED_FETCH_SIZE );
    Bookmark bookmark = InternalBookmark.parse( "SomeBookmark" );
    TransactionConfig txConfig = TransactionConfig.empty();
    await( tx.beginAsync( bookmark, txConfig ) );
    verify( connection, never() ).release();
}