@Test
void closesPool()
{

    BoltServerAddress address = BoltServerAddress.LOCAL_DEFAULT;
    ConnectionPool pool = poolMock( address, mock( Connection.class ) );
    DirectConnectionProvider provider = new DirectConnectionProvider( address, pool );
    provider.close();
    verify( pool ).close();
}