/**
  * test getGrantsOfRecords
  *
  */
 public function testGetGrantsOfRecords()
 {
     $userId = Tinebase_Core::getUser()->getId();
     $contact = Addressbook_Controller_Contact::getInstance()->getContactByUserId($userId);
     $records = new Tinebase_Record_RecordSet('Addressbook_Model_Contact');
     $records->addRecord($contact);
     $grants = $this->_instance->getGrantsOfRecords($records, $userId, 'container_id');
     $this->assertTrue($records[0]['container_id'] instanceof Tinebase_Model_Container, 'contaienr_id is not resolved');
     $this->assertTrue(!empty($records[0]['container_id']['path']), 'path is not added');
     $this->assertGreaterThan(0, count($records[0]['container_id']['account_grants']));
     $this->assertEquals('shared', $records[0]['container_id']['type']);
 }