protected function setUp()
{
parent::setUp();
$this->tokenStorage = $this->getMock('Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface');
$this->authenticationManager = $this->getMock('Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationManagerInterface');
$this->eventDispatcher = $this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
$this->configResolver = $this->getMock('eZ\\Publish\\Core\\MVC\\ConfigResolverInterface');
$this->sessionStorage = $this->getMock('Symfony\\Component\\HttpFoundation\\Session\\Storage\\SessionStorageInterface');
$this->logger = $this->getMock('Psr\\Log\\LoggerInterface');
$this->authenticator = new RestAuthenticator($this->tokenStorage, $this->authenticationManager, self::PROVIDER_KEY, $this->eventDispatcher, $this->configResolver, $this->sessionStorage, $this->logger);
}