public function beginAuthentication_authenticationNotStarted_notSetSessionFlag()
{
$token = $this->getToken();
$context = $this->getAuthenticationContext($token);
//Stub the provider
$this->provider->expects($this->any())->method('beginAuthentication')->willReturn(false);
//Mock the SessionFlagManager
$this->flagManager->expects($this->never())->method('setBegin');
$this->registry->beginAuthentication($context);
}