public function testDeleteMappingServiceTest()
 {
     $inquireRequest = new InquireMappingRequest();
     $inquireRequest->setSubscriberId("*****@*****.**");
     $inquireRequest->setSubscriberType("EMAIL_ADDRESS");
     $inquireMapping = $this->cardMappingService->getInquireMapping($inquireRequest);
     $mapping = $inquireMapping->getMappings()->getMapping();
     $deleteOptions = new DeleteMappingRequestOptions();
     $deleteOptions->setMappingId($mapping[0]->getMappingId());
     $deleteMapping = $this->cardMappingService->getDeleteMapping($deleteOptions);
     $this->assertTrue($deleteMapping->getRequestId() != null && $deleteMapping->getRequestId() > 0);
     $this->assertTrue($deleteMapping->getMapping()->getMappingId() > 0);
 }
 private function generateInquireMappingXML(InquireMappingRequest $request)
 {
     $xml = null;
     $xml = "<InquireMappingRequest>";
     $xml .= "<SubscriberId>" . $request->getSubscriberId() . "</SubscriberId>";
     $xml .= "<SubscriberType>" . $request->getSubscriberType() . "</SubscriberType>";
     $xml .= "<AccountUsage>" . $request->getAccountUsage() . "</AccountUsage>";
     $xml .= "<Alias>" . $request->getAlias() . "</Alias>";
     $xml .= "<DataResponseFlag>" . $request->getDataResponseFlag() . "</DataResponseFlag>";
     $xml .= "</InquireMappingRequest>";
     return $xml;
 }