public function testNoDuplicateAddresses()
 {
     $addressA = new Address();
     $addressA->setFirstName('Sam')->setLastName('Pratt')->setAddress1('Address1')->setAddress2('Address2')->setCity('London')->setCompanyName('Expressly')->setZip('W2 6LG')->setPhonePosition(0)->setAlias('billing')->setStateProvince('England')->setCountry('GBR');
     $addressB = new Address();
     $addressB->setFirstName('Bob')->setLastName('TheBuilder')->setCompanyName('Builders Inc');
     $entity = new Customer();
     $this->assertInstanceOf('Expressly\\Entity\\Customer', $entity->addAddress($addressA, true));
     $this->assertInstanceOf('Expressly\\Entity\\Customer', $entity->addAddress($addressA, true));
     $this->assertInstanceOf('Expressly\\Entity\\Customer', $entity->addAddress($addressB, false));
     $entityArray = $entity->toArray();
     $this->assertCount(2, $entityArray['addresses']);
 }