final Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put("a property", "some value");
// now we check if the application id is handled correctly
props.put(DEAConstants.PROPERTY_APPLICATION, "foo");
final Event e = new Event(topic, props);
this.receiver.handleEvent(e);
while ( this.events.size() == 0 ) {
Thread.sleep(5);
}
final Event receivedEvent = this.events.get(0);
assertEquals(topic, receivedEvent.getTopic());
assertEquals(OTHER_APP_ID, receivedEvent.getProperty(DEAConstants.PROPERTY_APPLICATION));
assertEquals(VALUE, receivedEvent.getProperty("a property"));
assertNull(receivedEvent.getProperty(ResourceResolver.PROPERTY_RESOURCE_TYPE));
this.events.clear();
}