List<BusinessInfo> biList = bl.getBusinessInfos().getBusinessInfo();
if (biList.get(0).getServiceInfos().getServiceInfo().size() != 2) {
Assert.fail("Should have found two ServiceInfos");
} else {
List<ServiceInfo> siList = biList.get(0).getServiceInfos().getServiceInfo();
ServiceInfo si = siList.get(0);
if (!TOM_PUBLISHER_SERVICEINFO_NAME.equals(si.getName().get(0).getValue())) {
Assert.fail("Should have found " + TOM_PUBLISHER_TMODEL01_NAME + " as the "
+ "ServiceInfo name, found " + si.getName().get(0).getValue());
}
}
}
} catch (Exception e) {
e.printStackTrace();