/**
  * try to get grants of a account on a container
  *
  */
 public function testGetGrantsOfAccount()
 {
     $this->assertTrue($this->_instance->hasGrant(Tinebase_Core::getUser(), $this->objects['initialContainer'], Tinebase_Model_Grants::GRANT_READ));
     $grants = $this->_instance->getGrantsOfAccount(Tinebase_Core::getUser(), $this->objects['initialContainer']);
     $this->assertEquals('Tinebase_Model_Grants', get_class($grants), 'wrong type');
     $this->assertTrue($grants->{Tinebase_Model_Grants::GRANT_READ});
     $this->assertTrue($grants->{Tinebase_Model_Grants::GRANT_ADD});
     $this->assertTrue($grants->{Tinebase_Model_Grants::GRANT_EDIT});
     $this->assertTrue($grants->{Tinebase_Model_Grants::GRANT_DELETE});
     $this->assertTrue($grants->{Tinebase_Model_Grants::GRANT_ADMIN});
 }