@Override
protected void assertResult() throws Exception {
assertEquals(expected, listener.numberOfReceivedEvents);
}
};
helper.runTest(5000);
}
// allows just enough time for the event threads to run
private static void assertReceivedEventsForClass(final int expected) throws Exception {
ParallelTestContainer helper = new ParallelTestContainer() {