publishSecondBatch(batchSize, true);
}
@Test
public void testUnsubscribe() throws Exception {
ByteString topic = getTopic(0);
subscriber.asyncSubscribe(topic, localSubscriberId, CreateOrAttach.CREATE_OR_ATTACH, new TestCallback(queue),
null);
assertTrue(queue.take());
startDelivery(topic, localSubscriberId, new TestMessageHandler(consumeQueue));
publisher.asyncPublish(topic, getMsg(0), new TestCallback(queue), null);