ListenRunnable theListenRunnable = new ListenRunnable(theStreamingServerConnector, theUserInfo);
Thread theListenThread = new Thread(theListenRunnable);
theListenThread.start();
theUserInfo.addEvent(theDomain, new DummyEvent());
Thread.sleep(200);
theUserInfo.addEvent(theDomain_2, new DummyEvent());
theListenThread.join();
ListenResult theListenResult = theListenRunnable.getListenResult();
assertEquals(2, theListenResult.getEvents().size());