public function setUp()
{
$this->authenticationContextFactory = $this->createMock('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\AuthenticationContextFactoryInterface');
$this->authHandler = $this->createMock('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\AuthenticationHandlerInterface');
$this->tokenStorage = $this->createMock('Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface');
$supportedTokens = array('Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken');
$this->listener = new RequestListener($this->authenticationContextFactory, $this->authHandler, $this->tokenStorage, $supportedTokens, '^/exclude/');
}