public function testOnInteractiveLoginNotUserObject()
{
$user = 'foobar';
$token = $this->getMock('Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface');
$token->expects($this->once())->method('getUser')->will($this->returnValue($user));
$event = new BaseInteractiveLoginEvent(new Request(), $token);
$this->eventDispatcher->expects($this->never())->method('dispatch');
$this->listener->onInteractiveLogin($event);
}