//Generate a unique business name including a pseudo random number.
String uniqueBusinessName = "business no " + UUID.randomUUID().toString();
//Save business under generated name using Auth token.
RegisterBusiness registerBusiness = new RegisterBusiness(getAuthenticationToken.getAuthenticationToken(), uniqueBusinessName);
registerBusiness.run();
//Retrieve business key and name from returned BusinessDetail object. The key, given
//by jUUDI, will be submitted while publishing services under the business. The name
//is used to generate the services access point and later to verify that jUDDI can
//find the business again.
String businesskey = registerBusiness.getBusinessDetail().getBusinessEntity().get(0).getBusinessKey();
String businessName = registerBusiness.getBusinessDetail().getBusinessEntity().get(0).getName().get(0).getValue();
//Publish a random number of services (0 < number of services generate < maxNumberOfBusinessServices).
//If the property maxNumberOfBusinessServices is not found, the max will be the second argument
//of the getProperties method call (in this case 2)
int numberOfBusinessService = XltRandom.nextInt(getProperty("maxNumberOfBusinessServices", 1)) + 1;