public function requestAuthenticationCode_authenticationSuccessful_updateSessionFlag()
{
$token = $this->getToken();
$context = $this->getAuthenticationContext($token, true, 'authCodeValue');
//Stub the SessionFlagManager
$this->stubIsNotAuthenticated(true);
//Expect flag to be set
$this->flagManager->expects($this->once())->method('setComplete')->with('test', $token);
$this->registry->requestAuthenticationCode($context);
}