public function beginAuthentication_trustedOptionUsed_checkTrustedCookie()
{
$request = $this->getRequest();
$user = $this->getUser();
$context = $this->getAuthenticationContext();
$context->expects($this->once())->method('useTrustedOption')->willReturn(true);
//Mock the TrustedCookieManager
$this->cookieManager->expects($this->once())->method('isTrustedComputer')->with($request, $user);
$this->authHandler->expects($this->once())->method('beginAuthentication');
$this->trustedFilter->beginAuthentication($context);
}