public function setUp()
{
$this->authenticationContextFactory = $this->createMock('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\AuthenticationContextFactoryInterface');
$this->authHandler = $this->createMock('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\AuthenticationHandlerInterface');
$supportedTokens = array('Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken');
$this->listener = new InteractiveLoginListener($this->authenticationContextFactory, $this->authHandler, $supportedTokens, array(self::WHITELISTED_IP));
}