public function isNotAuthenticated_notSessionStarted_returnFalse()
{
$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('isStarted')->willReturn(false);
$this->session->expects($this->never())->method('has');
$returnValue = $this->sessionFlagManager->isNotAuthenticated('providerName', $token);
$this->assertFalse($returnValue);
}