@Test
void shouldIgnoreDatabaseNameAndAccessModeWhenObtainConnectionFromPool() throws Throwable
{

    BoltServerAddress address = BoltServerAddress.LOCAL_DEFAULT;
    Connection connection = mock( Connection.class );
    ConnectionPool pool = poolMock( address, connection );
    DirectConnectionProvider provider = new DirectConnectionProvider( address, pool );
    Connection acquired1 = await( provider.acquireConnection( contextWithMode( READ ) ) );
    assertThat( acquired1, instanceOf( DirectConnection.class ) );
    assertSame( connection, ((DirectConnection) acquired1).connection() );
    verify( pool ).acquire( address );
}