deleteSubscription(authInfo, subscriptionKey);
}
public void saveSubscription(String authInfo, String subscriptionXML, String subscriptionKey) {
try {
Subscription subIn = (Subscription)EntityCreator.buildFromDoc(subscriptionXML, "org.uddi.sub_v3");
List<Subscription> subscriptionList = new ArrayList<Subscription>();
subscriptionList.add(subIn);
Holder<List<Subscription>> subscriptionHolder = new Holder<List<Subscription>>();
subscriptionHolder.value = subscriptionList;
subscription.saveSubscription(authInfo, subscriptionHolder);
Subscription subDirectOut = subscriptionHolder.value.get(0);
assertEquals(subIn.getSubscriptionKey(), subDirectOut.getSubscriptionKey());
List<Subscription> outSubscriptionList = subscription.getSubscriptions(authInfo);
Assert.assertNotNull(outSubscriptionList);
Subscription subOut = outSubscriptionList.get(0);
//assertEquals(subIn.getSubscriptionKey(), subOut.getSubscriptionKey());
assertEquals(subDirectOut.getExpiresAfter().getMonth(), subOut.getExpiresAfter().getMonth());
assertEquals(subDirectOut.getExpiresAfter().getDay(), subOut.getExpiresAfter().getDay());
assertEquals(subDirectOut.getExpiresAfter().getYear(), subOut.getExpiresAfter().getYear());
//assertEquals(subIn.getSubscriptionFilter().getFindService().getName().get(0).getValue(),
// subOut.getSubscriptionFilter().getFindService().getName().get(0).getValue());
} catch (Exception e) {