public function testBuildMatcherService()
{
$serviceId = 'foo';
$matcher = $this->getMock('eZ\\Bundle\\EzPublishCoreBundle\\SiteAccess\\Matcher');
$this->container->expects($this->once())->method('get')->with($serviceId)->will($this->returnValue($matcher));
$matchingConfig = array('foo' => 'bar');
$request = new SimplifiedRequest();
$matcher->expects($this->once())->method('setMatchingConfiguration')->with($matchingConfig);
$matcher->expects($this->once())->method('setRequest')->with($request);
$matcherBuilder = new MatcherBuilder($this->container);
$matcherBuilder->buildMatcher("@{$serviceId}", $matchingConfig, $request);
}