NodeDetail nodeDetail = publisher.saveNode(saveNode);
ClerkDetail clerkDetail = publisher.saveClerk(saveClerk);
Assert.assertEquals(2,nodeDetail.getNode().size());
Assert.assertEquals(2,clerkDetail.getClerk().size());
ClientSubscriptionInfoDetail detail = publisher.saveClientSubscriptionInfo(saveClientSubscriptionInfo);
Assert.assertEquals("mykey", detail.getClientSubscriptionInfo().get(0).getSubscriptionKey());
GetClientSubscriptionInfoDetail getDetail = new GetClientSubscriptionInfoDetail();
getDetail.setAuthInfo(authInfoJoe);
getDetail.getClientSubscriptionKey().add("mykey");
ClientSubscriptionInfoDetail detail2 = publisher.getClientSubscriptionInfoDetail(getDetail);
Assert.assertEquals("mykey", detail2.getClientSubscriptionInfo().get(0).getSubscriptionKey());
DeleteClientSubscriptionInfo deleteInfo = new DeleteClientSubscriptionInfo();
deleteInfo.setAuthInfo(authInfoJoe);
deleteInfo.getSubscriptionKey().add("mykey");
publisher.deleteClientSubscriptionInfo(deleteInfo);
try {
@SuppressWarnings("unused")
ClientSubscriptionInfoDetail detail3 = publisher.getClientSubscriptionInfoDetail(getDetail);
Assert.fail("We're expecting an InvalidKeyPassedException");
} catch (Exception e) {
Assert.assertEquals(InvalidKeyPassedException.class, e.getClass());
}