/**
  * @group EricssonCommercialGroupInt
  */
 public function testLoad()
 {
     $this->commercialGroupMapper->insert($this->commercialGroup);
     $this->assertNotNull($this->commercialGroup->getId());
     $commericialGroup = $this->commercialGroupMapper->findOneById($this->commercialGroup->getId());
     $this->assertNotNull($commercialGroup);
     $this->assertInstanceOf('\\Application\\Model\\CommercialGroupModel', $commericialGroup);
 }
 public function testUpdateAuthorizedAndRestrictedNumbers()
 {
     $this->commercialGroupMapper->insert($this->commercialGroup);
     $this->assertNotNull($this->commercialGroup->getId());
     $commGroup = $this->commercialGroupMapper->findOneById($this->commercialGroup->getId());
     $whiteList = $commGroup->getWhiteList();
     $whiteList[] = "984847766";
     $commGroup->setWhiteList($whiteList);
     $blackList = $commGroup->getBlackList();
     $blackList[] = "888474632";
     $commGroup->setBlackList($whiteList);
     $result = $this->commercialGroupMapper->update($commGroup);
     $this->assertNotNull($result);
     $this->assertEquals($this->commercialGroup->getId(), $result);
 }