ServerConfiguration conf = new ServerConfiguration();
ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
TopicManager tm = new TrivialOwnAllTopicManager(conf, executor);
dm = new StubDeliveryManager();
PersistenceManager pm = LocalDBPersistenceManager.instance();
sm = new StubSubscriptionManager(tm, pm, dm, conf, executor);
subChannelMgr = new SubscriptionChannelManager();
sh = new SubscribeHandler(conf, tm, dm, pm, sm, subChannelMgr);
channel = new WriteRecordingChannel();