/**
  * try to get a group by
  *
  */
 public function testGetGroupById()
 {
     $this->testAddGroup();
     $group = $this->_groupLDAP->getGroupByName($this->objects['initialGroup']->name);
     $group = $this->_groupLDAP->getGroupById($group->getId());
     $this->assertEquals($this->objects['initialGroup']->name, $group->name);
 }
 /**
  * try to delete a group
  *
  */
 public function testDeleteGroups()
 {
     $group = $this->_groupLDAP->getGroupByName($this->objects['updatedGroup']->name);
     $this->_groupLDAP->deleteGroups($group->getId());
     $this->setExpectedException('Exception');
     $group = $this->_groupLDAP->getGroupById($group->getId());
 }