public void setUp() throws Exception {
super.setUp();
cfg = new ServerConfiguration();
final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
mm = MetadataManagerFactory.newMetadataManagerFactory(cfg, zk);
sm = new MMSubscriptionManager(cfg, mm, new TrivialOwnAllTopicManager(cfg, scheduler),
LocalDBPersistenceManager.instance(), null, scheduler);
subDataCallback = new Callback<SubscriptionData>() {
@Override
public void operationFailed(Object ctx, final PubSubException exception) {
scheduler.execute(new Runnable() {