Server eventSinkServer = createEventSink(url);
TestingEventSinkImpl.RECEIVED_FIRES.set(0);
TestingEventSinkImpl.RECEIVED_EARTHQUAKES.set(0);
service.start();
Emitter emitter = new EmitterImpl(service);
emitter.dispatch(new FireEvent("Canada", 8));
emitter.dispatch(new EarthquakeEvent(3.5f, "Russia"));
for (int i = 0; i < 10; i++) {
if (TestingEventSinkImpl.RECEIVED_EARTHQUAKES.get() == 1) {
break;
}
try {