/**
  * @test
  * @depends it_should_find_contact_by_email
  * @param ContactResponse $contactResponse
  * @return ContactResponse
  */
 public function it_should_find_contact_by_phone_number(ContactResponse $contactResponse)
 {
     // todo request does not work for cURL
     if (!$this->proxy instanceof Native) {
         $this->assertTrue(true);
         return $contactResponse;
     }
     $actionContactList = $this->contactsFactory->actionContactList();
     $phoneNumber = $contactResponse->getPhoneNumber();
     $result = $actionContactList->setPhoneNumber($phoneNumber)->execute();
     $this->assertInstanceOf('\\SMSApi\\Api\\Response\\Contacts\\ContactsResponse', $result);
     $this->assertEquals(1, $result->getSize());
     $collection = $result->getCollection();
     $this->assertEquals($phoneNumber, $collection[0]->getPhoneNumber());
     return $contactResponse;
 }