public void getSamSyndicatorSubscriptionResults(String authInfoSam) {
try {
GetSubscriptionResults getSubResultsIn = (GetSubscriptionResults)EntityCreator.buildFromDoc(SAM_SUBSCRIPTIONRESULTS_XML, "org.uddi.sub_v3");
getSubResultsIn.setAuthInfo(authInfoSam);
SubscriptionResultsList result = subscription.getSubscriptionResults(getSubResultsIn);
if (result == null)
Assert.fail("Null result from getSubscriptionResults operation");
BusinessDetail busDetail = result.getBusinessDetail();
if (busDetail == null)
Assert.fail("No result from getSubscriptionResults operation");
List<BusinessEntity> beList = busDetail.getBusinessEntity();
if (beList == null || beList.size() == 0)
Assert.fail("No result from getSubscriptionResults operation");
BusinessEntity beOut = beList.get(0);
BusinessEntity beIn = (BusinessEntity)EntityCreator.buildFromDoc(TckBusiness.SAM_BUSINESS_XML, "org.uddi.api_v3");
assertEquals(beIn.getBusinessKey(), beOut.getBusinessKey());
TckValidator.checkNames(beIn.getName(), beOut.getName());
TckValidator.checkDescriptions(beIn.getDescription(), beOut.getDescription());
TckValidator.checkDiscoveryUrls(beIn.getDiscoveryURLs(), beOut.getDiscoveryURLs());
TckValidator.checkContacts(beIn.getContacts(), beOut.getContacts());
TckValidator.checkCategories(beIn.getCategoryBag(), beOut.getCategoryBag());
List<KeyBag> keyBagList = result.getKeyBag();
if (keyBagList == null || keyBagList.size() == 0)
Assert.fail("No keyBag from SamSyndicator getSubscriptionResults operation");
KeyBag keyBag = keyBagList.get(0);
assertEquals(SAM_DUMMYBUSINESSKEY, keyBag.getBusinessKey().get(0));