try {
// Now get the entity and check the values
GetBusinessDetail gb = new GetBusinessDetail();
gb.getBusinessKey().add(businessKey);
BusinessDetail bd = inquiry.getBusinessDetail(gb);
List<BusinessEntity> beOutList = bd.getBusinessEntity();
BusinessEntity beOut = beOutList.get(0);
//We are expecting 2 services
assertEquals(2, beOut.getBusinessServices().getBusinessService().size());
//Now updating the business by adding another description
SaveBusiness sb = new SaveBusiness();
sb.setAuthInfo(authInfo);
BusinessEntity beIn = beOut;
Description desc2 = new Description();
desc2.setLang("nl");
desc2.setValue("Omschrijving");
beIn.getDescription().add(desc2);
sb.getBusinessEntity().add(beIn);
publication.saveBusiness(sb);
// Now get the entity and check the values
BusinessDetail bdnew = inquiry.getBusinessDetail(gb);
List<BusinessEntity> beOutListNew = bdnew.getBusinessEntity();
BusinessEntity beOutNew = beOutListNew.get(0);
assertEquals(beIn.getBusinessKey(), beOutNew.getBusinessKey());
// After the update we still are supposed to see two services.
assertNotNull(beOutNew.getBusinessServices());