// 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;
try {
pdBeforeDelete = publisher.getPublisherDetail(gp);
Assert.assertNotNull(pdBeforeDelete);
} catch (InvalidKeyPassedException e) {
Assert.fail("We expected to find publisher " + publisherXML);