public function testGetSetDistrict()
 {
     $expected = "DISTRICT";
     $this->assertEmpty($this->instance->getDistrict());
     $this->assertTrue($this->instance->setDistrict($expected) instanceof Address);
     $this->assertEquals($expected, $this->instance->getDistrict());
 }
 /**
  * @param Address $address
  * @return array
  */
 public static function extractAddress(Address $address)
 {
     return array("postCode" => $address->getPostcode());
 }
 /**
  * @param Address $address
  * @return bool
  */
 protected function hasPostCode(Address $address)
 {
     return false === empty($address->getPostcode());
 }