public void testAddEvent_Init_WithoutSession() throws Exception {
final Domain theDomain = DomainFactory.getDomain("X");
final String theUserId = "test_user";
final Event theEvent = new Event() {};
EventRegistry theEventRegistry = EventRegistryFactory.getInstance().getEventRegistry();
theEventRegistry.registerUser(theDomain, theUserId, null);
RemoteEventServiceServlet theRemoteEventServiceServlet = new DummyRemoteEventServlet(theDomain, theEvent);
theRemoteEventServiceServlet.init(null);
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());
}