public function loadConfiguration()
{
$slugify = m::mock('Nette\\DI\\ServiceDefinition');
$slugify->shouldReceive('setClass')->with('Cocur\\Slugify\\SlugifyInterface')->once()->andReturn($slugify);
$slugify->shouldReceive('setFactory')->with('Cocur\\Slugify\\Slugify')->once()->andReturn($slugify);
$helper = m::mock('Nette\\DI\\ServiceDefinition');
$helper->shouldReceive('setClass')->with('Cocur\\Slugify\\Bridge\\Latte\\SlugifyHelper')->once()->andReturn($helper);
$helper->shouldReceive('setAutowired')->with(false)->once()->andReturn($helper);
$builder = m::mock('Nette\\DI\\ContainerBuilder');
$builder->shouldReceive('addDefinition')->with('slugify.slugify')->once()->andReturn($slugify);
$builder->shouldReceive('addDefinition')->with('slugify.helper')->once()->andReturn($helper);
$compiler = m::mock('Nette\\DI\\Compiler');
$compiler->shouldReceive('getContainerBuilder')->once()->andReturn($builder);
$this->extension->setCompiler($compiler, 'slugify');
$this->extension->loadConfiguration();
}