public function setBegin_startTwoFactor_flagIsSetFalse()
{
$token = $this->createMock('Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface');
//Mock the SessionFlagGenerator
$this->flagGenerator->expects($this->once())->method('getSessionFlag')->with('providerName', $token)->willReturn('session_flag');
//Mock the Session
$this->session->expects($this->once())->method('set')->with('session_flag', false);
$this->sessionFlagManager->setBegin('providerName', $token);
}