if (result == null)
Assert.fail("Null result from find binding operation");
List<BindingTemplate> btList = result.getBindingTemplate();
if (btList == null || btList.size() == 0)
Assert.fail("No result from find binding operation");
BindingTemplate btOut = btList.get(0);
BindingTemplate btIn = (BindingTemplate)EntityCreator.buildFromDoc(TckBindingTemplate.JOE_BINDING_XML, "org.uddi.api_v3");
assertEquals(btIn.getServiceKey(), btOut.getServiceKey());
assertEquals(btIn.getBindingKey(), btOut.getBindingKey());
TckValidator.checkDescriptions(btIn.getDescription(), btOut.getDescription());
TckValidator.checkCategories(btIn.getCategoryBag(), btOut.getCategoryBag());
}
catch(Exception e) {
logger.error(e.getMessage(), e);
Assert.fail("No exception should be thrown: " + e.getMessage());
}