// The following 4 tests are to make sure that the subscriberId validation
// also works when it is a hub subscriber and we're expecting the
// subscriberId to be in the "hub" specific format.
@Test
public void testSyncHubSubscribeWithInvalidSubscriberId() throws Exception {
Client hubClient = new HedwigHubClient(new ClientConfiguration());
Subscriber hubSubscriber = hubClient.getSubscriber();
boolean subscribeSuccess = false;
try {
hubSubscriber.subscribe(getTopic(0), localSubscriberId, CreateOrAttach.CREATE_OR_ATTACH);
} catch (InvalidSubscriberIdException e) {