public function requestAuthenticationCode_notAuthenticated_callTwoFactorProvider()
{
$context = $this->getAuthenticationContext();
//Stub the SessionFlagManager
$this->stubIsNotAuthenticated(true);
//Mock the provider
$this->provider->expects($this->once())->method('requestAuthenticationCode')->with($context);
// Must not dispatch event
$this->eventDispatcher->expects($this->never())->method('dispatch');
$this->registry->requestAuthenticationCode($context);
}