// send timed event
final Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put(EventUtil.PROPERTY_TIMED_EVENT_TOPIC, TOPIC);
props.put(EventUtil.PROPERTY_TIMED_EVENT_PERIOD, 1L);
props.put(EventUtil.PROPERTY_TIMED_EVENT_ID, "id");
this.eventAdmin.sendEvent(new Event(EventUtil.TOPIC_TIMED_EVENT, props));
while ( counter.get() < 5 ) {
this.sleep(1000);
}
final Dictionary<String, Object> props2 = new Hashtable<String, Object>();
props2.put(EventUtil.PROPERTY_TIMED_EVENT_TOPIC, TOPIC);
props2.put(EventUtil.PROPERTY_TIMED_EVENT_ID, "id");
this.eventAdmin.sendEvent(new Event(EventUtil.TOPIC_TIMED_EVENT, props2));
int current = counter.get();
this.sleep(2000);
if ( counter.get() != current && counter.get() != current + 1 ) {
fail("Events are still sent");
}