subscriptions.add(client2Id);
core.clientQueues.put(client1Id,
new ConcurrentLinkedQueue<NamespaceNotification>());
core.clientQueues.put(client2Id,
new ConcurrentLinkedQueue<NamespaceNotification>());
core.subscriptions.put(new NamespaceEventKey(eventCommon), subscriptions);
subscriptions = new HashSet<Long>();
subscriptions.add(client1Id);
core.subscriptions.put(new NamespaceEventKey(event1), subscriptions);
subscriptions = new HashSet<Long>();
subscriptions.add(client2Id);
core.subscriptions.put(new NamespaceEventKey(event2), subscriptions);
core.clients.put(client1Id, new ClientData(client1Id, handler1, "host", 3000));
core.clients.put(client2Id, new ClientData(client2Id, handler2, "host", 3000));
dispatcher.assignClient(client1Id);
dispatcher.assignClient(client2Id);
dispatcher.loopSleepTime = 1;