assertTrue("executor done on time", threadService.awaitTermination(30l, TimeUnit.SECONDS));
// for the real test... we should not have any subscriptions left on broker C for the temp dests
BrokerItem brokerC = brokers.get(BROKER_C);
RegionBroker regionBroker = (RegionBroker) brokerC.broker.getRegionBroker();
final AbstractRegion region = (AbstractRegion) regionBroker.getTempQueueRegion();
assertTrue("There were no lingering temp-queue destinations", Wait.waitFor(new Wait.Condition() {
@Override
public boolean isSatisified() throws Exception {
LOG.info("Lingering temps: " + region.getSubscriptions().size());
return 0 == region.getSubscriptions().size();
}
}));
}