* different from the deleted business key.
*/
@Override
protected void postValidate() throws Exception
{
BusinessList businessList;
Name name = new Name();
name.setValue(businessEntity.getName().get(0).getValue());
name.setLang(businessEntity.getName().get(0).getLang());
FindBusiness findBusiness = new FindBusiness();
findBusiness.getName().add(name);
inqueryService = JUDDIServiceProvider.getInquiryService();
businessList = inqueryService.findBusiness(findBusiness);
try
{
Assert.assertNull("A non-null BusinessInfos object was retured in a search for the name of a " +
"bussiness item that should previously have been deleted", businessList.getBusinessInfos());
}
catch(AssertionError e)
{
for (BusinessInfo bi: businessList.getBusinessInfos().getBusinessInfo())
{
Assert.assertFalse("A business with the same name and business key of the business that should " +
"have been deleted has been found", bi.getBusinessKey() .equals(businessEntity.getBusinessKey()));
}