StubCallback<Void> stubCallback = new StubCallback<Void>();
bkpm.acquiredTopic(topic, stubCallback, null);
assertNull(ConcurrencyUtils.take(stubCallback.queue).right());
// now abandon, and try another time, the prev ledger should be dirty
bkpm = new BookkeeperPersistenceManager(new BookKeeper(bktb.getZkHostPort()), bktb.getZooKeeperClient(), tm,
conf, scheduler);
bkpm.acquiredTopic(topic, stubCallback, null);
assertNull(ConcurrencyUtils.take(stubCallback.queue).right());
assertEquals(0, bkpm.topicInfos.get(topic).ledgerRanges.size());
}