// Flush event list of the event tracker
m_eventTracker.clearEvents();
// Send donuts and check the sender instance name
Event receivedEvent;
for (int i = 0; i < NUMBER_OF_EAH_PROVIDERS; i++) {
m_eahProviders[i].sellDonut();
receivedEvent = m_eventTracker.waitForEvent();
assertEquals(
"The instance name property of the received message must be the same as the sender instance name.",
m_eahProvidersInstances[i].getInstanceName(), receivedEvent
.getProperty("publisher.instance.name"));
}
}