logger.info("savePublisher as " + rootPublisherStr);
String authInfo = TckSecurity.getAuthToken(security, rootPublisherStr, "");
logger.debug("Saving new publisher: " + publisherXML);
SavePublisher sp = new SavePublisher();
sp.setAuthInfo(authInfo);
Publisher pubIn = (Publisher) EntityCreator.buildFromDoc(publisherXML, EntityCreator.JUDDIv3_Package);
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.isIsAdmin(), pubOut.isIsAdmin());
assertEquals(pubIn.isIsEnabled(), pubOut.isIsEnabled());
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;