public function testRestrictionInsert()
 {
     $data = $this->restrictionMapper->findOneById(1);
     $this->assertNotNull($data);
     $this->assertInstanceOf("\\Application\\Model\\RestrictionModel", $data);
     $data->setId(null);
     $this->restrictionMapper->insert($data);
     $this->assertNotNull($data->getId());
 }
 protected function _createRestrictions()
 {
     $restrictions = new Model\RestrictionModel($this->_restrictionsData);
     $this->_restMapper->insert($restrictions);
     $this->assertNotNull($restrictions->getId());
     $newRestrinctions = $this->_restMapper->findOneById($restrictions->getId());
     $this->assertNotNull($newRestrinctions, "Restrictions does not exist");
     //         $this->_checkSavedData($this->_restrictionsData, $newRestrinctions, "Restrinctions");
     return $restrictions->getId();
 }