/**
  * @covers \eZ\Publish\Core\Persistence\InMemory\ObjectStateHandler::deleteGroup
  */
 public function testDeleteGroup()
 {
     $this->handler->deleteGroup(2);
     try {
         $this->handler->loadGroup(2);
         $this->fail('Successfully loaded deleted object state group');
     } catch (NotFoundException $e) {
         // Do nothing
     }
     try {
         $this->handler->load(1);
         $this->fail('Successfully loaded one of the states from deleted object state group');
     } catch (NotFoundException $e) {
         // Do nothing
     }
     try {
         $this->handler->load(2);
         $this->fail('Successfully loaded one of the states from deleted object state group');
     } catch (NotFoundException $e) {
         // Do nothing
     }
 }
 /**
  * Loads a object state group.
  *
  * @param mixed $objectStateGroupId
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException if the group was not found
  *
  * @return \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
  */
 public function loadObjectStateGroup($objectStateGroupId)
 {
     $spiObjectStateGroup = $this->objectStateHandler->loadGroup($objectStateGroupId);
     return $this->buildDomainObjectStateGroupObject($spiObjectStateGroup);
 }