function let(LdapConnectionInterface $connection, EventDispatcherInterface $dispatcher)
{
$connection->execute(Argument::that(function ($operation) {
return $operation->getFilter() == "(&(objectClass=*))" && $operation->getBaseDn() == "";
}))->willReturn($this->entry);
$connection->getConfig()->willReturn(new DomainConfiguration('example.local'));
$connection->isBound()->willReturn(false);
$connection->connect('', '', true)->willReturn(null);
$this->beConstructedWith($connection, $dispatcher);
}