function let(LdapConnectionInterface $connection)
{
$config = (new DomainConfiguration('example.com'))->setSchemaName('example');
$connection->getConfig()->willReturn($config);
$config = new Configuration();
$parserTest = SchemaParserFactory::get($config->getSchemaFormat(), __DIR__ . '/../resources/schema');
$parser = SchemaParserFactory::get($config->getSchemaFormat(), __DIR__ . '/../../resources/schema');
$cache = CacheFactory::get('none', []);
$this->dispatcherTest = new SymfonyEventDispatcher();
$this->dispatcher = new SymfonyEventDispatcher();
$this->objectSchemaFactoryTest = new LdapObjectSchemaFactory($cache, $parserTest, $this->dispatcherTest);
$this->objectSchemaFactory = new LdapObjectSchemaFactory($cache, $parser, $this->dispatcher);
$this->beConstructedWith($connection, $this->objectSchemaFactory, $this->dispatcher);
}