public function invokeCallsTheAuthenticationManager()
{
$securityContext = $this->createMock(Security\Context::class);
$authenticationManager = $this->createMock(Security\Authentication\AuthenticationManagerInterface::class);
$privilegeManager = $this->createMock(Security\Authorization\PrivilegeManagerInterface::class);
$joinPoint = $this->createMock(JoinPointInterface::class);
$authenticationManager->expects($this->once())->method('authenticate');
$interceptor = new Security\Authorization\Interceptor\PolicyEnforcement($securityContext, $authenticationManager, $privilegeManager);
$interceptor->setJoinPoint($joinPoint);
$interceptor->invoke();
}