public function testGetSetCountry()
 {
     $expected = Country::getCountryName('FOO');
     $this->assertEmpty($this->instance->getCountry());
     $this->assertInstanceOf(Authority::class, $this->instance->setCountry($expected));
     $this->assertEquals($expected, $this->instance->getCountry());
 }
 /**
  * @param Authority $authority
  * @return Authority
  */
 protected function loadByPostCode(Authority $authority)
 {
     $result = $this->entityManager->getRepository('TransformCore\\PHE\\LocalHealthAuthorityBundle\\Entity\\Authority')->findOneBy(array('postcode' => $authority->getPostcode()));
     if ($result instanceof Authority) {
         $result->setCountry($authority->getCountry())->setLastUpdated(new \DateTime());
         $this->updateLocalHealthAuthority($authority, $result);
         $this->updateDistrictCouncil($authority, $result);
         $this->updateCounty($authority, $result);
         $this->updateElectoralWard($authority, $result);
         $this->updateParishCouncil($authority, $result);
         return $result;
     }
     return $authority;
 }