hubClient.close();
}
@Test(timeout=10000)
public void testSyncHubUnsubscribeWithInvalidSubscriberId() throws Exception {
Client hubClient = new HedwigHubClient(new HubClientConfiguration());
Subscriber hubSubscriber = hubClient.getSubscriber();
boolean unsubscribeSuccess = false;
try {
hubSubscriber.unsubscribe(getTopic(0), localSubscriberId);
} catch (InvalidSubscriberIdException e) {
unsubscribeSuccess = true;
} catch (Exception ex) {
unsubscribeSuccess = false;
}
assertTrue(unsubscribeSuccess);
hubClient.close();
}