String rootPublisherStr = AppConfig.getConfiguration().getString(Property.JUDDI_ROOT_PUBLISHER);
authInfo = TckSecurity.getAuthToken(security, rootPublisherStr, "");
logger.debug("Saving new publisher: " + publisherXML);
SavePublisher sp = new SavePublisher();
sp.setAuthInfo(authInfo);
Publisher pubIn = (Publisher)EntityCreator.buildFromDoc(publisherXML, "org.apache.juddi.api_v3");
sp.getPublisher().add(pubIn);
publisher.savePublisher(sp);
// Now get the entity and check the values
GetPublisherDetail gp = new GetPublisherDetail();
gp.getPublisherId().add(publisherId);
gp.setAuthInfo(authInfo);
PublisherDetail pd = publisher.getPublisherDetail(gp);
List<Publisher> pubOutList = pd.getPublisher();
Publisher pubOut = pubOutList.get(0);
assertEquals(pubIn.getAuthorizedName(), pubOut.getAuthorizedName());
assertEquals(pubIn.getPublisherName(), pubOut.getPublisherName());
assertEquals(pubIn.getEmailAddress(), pubOut.getEmailAddress());
assertEquals(pubIn.getIsAdmin(), pubOut.getIsAdmin());
assertEquals(pubIn.getIsEnabled(), pubOut.getIsEnabled());
assertEquals(pubIn.getMaxBindingsPerService(), pubOut.getMaxBindingsPerService());
assertEquals(pubIn.getMaxBusinesses(), pubOut.getMaxBusinesses());
assertEquals(pubIn.getMaxServicePerBusiness(), pubOut.getMaxServicePerBusiness());
assertEquals(pubIn.getMaxTModels(), pubOut.getMaxTModels());
logger.debug("Querying for publisher: " + publisherXML);
//Querying for this publisher to make sure it's really gone
//We're expecting a invalid Key exception at this point.
PublisherDetail pdBeforeDelete =null;