public void addPublisherAssertion(String authInfo, String pubassertXML) {
try {
AddPublisherAssertions ap = new AddPublisherAssertions();
ap.setAuthInfo(authInfo);
PublisherAssertion paIn = (PublisherAssertion)EntityCreator.buildFromDoc(pubassertXML, "org.uddi.api_v3");
ap.getPublisherAssertion().add(paIn);
publication.addPublisherAssertions(ap);
// Now get the entity and check the values
List<PublisherAssertion> paOutList = publication.getPublisherAssertions(authInfo);
if (paOutList.size()==1) {
PublisherAssertion paOut = paOutList.get(0);
assertEquals(paIn.getFromKey(), paOut.getFromKey());
assertEquals(paIn.getToKey(), paOut.getToKey());
KeyedReference keyRefIn = paIn.getKeyedReference();
KeyedReference keyRefOut = paOut.getKeyedReference();
assertEquals(keyRefIn.getTModelKey(), keyRefOut.getTModelKey());
assertEquals(keyRefIn.getKeyName(), keyRefOut.getKeyName());
assertEquals(keyRefIn.getKeyValue(), keyRefOut.getKeyValue());
}