});
Subscriber mySubscriber = myClient.getSubscriber();
Publisher myPublisher = myClient.getPublisher();
ByteString myTopic = getTopic(0);
// Subscribe to a topic and start delivery on it
mySubscriber.asyncSubscribe(myTopic, localSubscriberId, CreateOrAttach.CREATE_OR_ATTACH,
new TestCallback(queue), null);
assertTrue(queue.take());
startDelivery(mySubscriber, myTopic, localSubscriberId, new TestMessageHandler(consumeQueue));
// Publish some messages
int batchSize = 10;