theEventRegistry.registerUser(theDomain, theUserId, null);
DummyRemoteEventServlet theRemoteEventServiceServlet = new DummyRemoteEventServlet(theDomain, theEvent);
theRemoteEventServiceServlet.addEventCall();
final List<DomainEvent> theEvents = theEventRegistry.listen(getLongPollingListener(), theUserId);
assertNotNull(theEvents);
assertEquals(1, theEvents.size());
assertSame(theDomain, theEvents.get(0).getDomain());
assertSame(theEvent, theEvents.get(0).getEvent());
}