public function requestAuthenticationCode_authenticationFailed_dispatchEvent()
{
$token = $this->getToken();
$context = $this->getAuthenticationContext($token, false, 'authCodeValue');
//Stub the SessionFlagManager
$this->stubIsNotAuthenticated(true);
// Dispatch authentication success event
$this->assertDispatchAuthenticationEvent(TwoFactorAuthenticationEvents::FAILURE);
$this->registry->requestAuthenticationCode($context);
}