public function isAuthenticatedReturnsTrueIfAnTokenCouldBeAuthenticated()
{
$mockToken = $this->createMock(TokenInterface::class);
$mockToken->expects($this->once())->method('isAuthenticated')->will($this->returnValue(true));
$this->mockSecurityContext->expects($this->once())->method('getAuthenticationTokens')->will($this->returnValue([$mockToken]));
$this->assertTrue($this->authenticationProviderManager->isAuthenticated());
}