// generate events
Vector<Short> srcIdList = new Vector<Short> ();
srcIdList.add((short)1);
DbusEventGenerator evGen = new DbusEventGenerator(0,srcIdList);
Vector<DbusEvent> srcTestEvents = new Vector<DbusEvent>();
final int numEvents = 9;
final int numOfFailureEvent = 5; //1-based number of the event callback to fail
final int numEventsPerWindow = 3;
final int payloadSize = 200;
final int numWindows = (int)Math.ceil(1.0 * numEvents / numEventsPerWindow);
Assert.assertTrue(evGen.generateEvents(numEvents, numEventsPerWindow, 500, payloadSize, srcTestEvents) > 0);
// find out how much data we need to stream for the failure
int win1Size= payloadSize - 1; // account for the EOW event which is < payload size
int win2Size = 0;
int eventN = 0;