/**
  * @return \Zend\InputFilter\InputFilterInterface
  */
 public function getInputFilter()
 {
     if (!$this->inputFilter) {
         $this->inputFilter = parent::getInputFilter();
         $this->inputFilter->merge(new DeputyFilter());
     }
     return $this->inputFilter;
 }
 public function testAddPerson()
 {
     $donor = new Donor();
     $donor->setId('1');
     $this->epa->addPerson($donor);
     $this->assertEquals($donor, $this->epa->getDonor());
     $attorney = new Attorney();
     $attorney->setId('1');
     $this->epa->addPerson($attorney);
     $this->assertEquals($attorney, $this->epa->getAttorneys()[0]);
     $personNotifyDonor = new PersonNotifyDonor();
     $personNotifyDonor->setId('1');
     $this->epa->addPerson($personNotifyDonor);
     $this->assertEquals($personNotifyDonor, $this->epa->getPersonNotifyDonor());
     $notifiedRelative = new NotifiedRelative();
     $notifiedRelative->setId('1');
     $this->epa->addPerson($notifiedRelative);
     $this->assertEquals($notifiedRelative, $this->epa->getNotifiedRelatives()[0]);
     $notifiedAttorney = new NotifiedAttorney();
     $notifiedAttorney->setId('1');
     $this->epa->addPerson($notifiedAttorney);
     $this->assertEquals($notifiedAttorney, $this->epa->getNotifiedAttorneys()[0]);
     $correspondent = new Correspondent();
     $correspondent->setId('1');
     $this->epa->addPerson($correspondent);
     $this->assertEquals($correspondent, $this->epa->getCorrespondent());
     $person = $this->getMockForAbstractClass('Opg\\Core\\Model\\Entity\\CaseActor\\Person');
     $person->setId('1');
     try {
         $this->epa->addPerson($person);
     } catch (\Exception $e) {
         $this->assertTrue($e instanceof \LogicException);
         $this->assertFalse($e instanceof UnusedException);
     }
 }
 public function testGetInputFilter()
 {
     $this->assertTrue($this->attorney->getInputFilter() instanceof \Zend\InputFilter\InputFilter);
 }