/**
  * @test
  */
 public function anonymousAclQueryShouldDelegateToIsGrantedWhenAclIsFound()
 {
     $file = File::create(array('id' => 1));
     $acl = $this->getMockForAbstractClass('Symfony\\Component\\Security\\Acl\\Model\\AclInterface');
     $acl->expects($this->once())->method('isGranted')->with($this->equalTo(array(MaskBuilder::MASK_VIEW)));
     $this->aclProvider->expects($this->once())->method('findAcl')->with($this->isInstanceOf('Symfony\\Component\\Security\\Acl\\Domain\\ObjectIdentity'))->will($this->returnValue($acl));
     $acl = new SymfonyAuthorizationAdapter($this->context, $this->aclProvider, false);
     $acl->attachTo($this->filelib);
     $ret = $acl->anonymousAclQueryWith($file);
 }