public function testCreateRequest()
 {
     $xavRequest = new \Ups\AddressValidation();
     $xavRequest->setRequest($request = new RequestMock());
     $address = new \Ups\Entity\Address();
     $address->setAttentionName('Test Test');
     $address->setBuildingName('Building 1');
     $address->setAddressLine1('Times Square 1');
     $address->setAddressLine2('First Corner');
     $address->setAddressLine3('Second Corner');
     $address->setStateProvinceCode('NY');
     $address->setCity('New York');
     $address->setCountryCode('US');
     $address->setPostalCode('50000');
     try {
         // Get data
         $response = $xavRequest->validate($address);
     } catch (Exception $e) {
     }
     $this->assertEquals($request->getRequestXml(), $request->getExpectedRequestXml('/AddressValidation/Request1.xml'));
 }
 /**
  * @param RequestInterface $request
  *
  * @return $this
  */
 public function setRequest(RequestInterface $request)
 {
     $this->upsAddressValidation->setRequest($request);
     return $this;
 }