public function requestAuthenticationCode_onCall_checkIfAuthenticationComplete()
{
$token = $this->getToken();
$context = $this->getAuthenticationContext($token);
//Mock the SessionFlagManager
$this->flagManager->expects($this->once())->method('isNotAuthenticated')->with('test', $token);
$this->registry->requestAuthenticationCode($context);
}