if (currentEventIdx >= events.size())
{
fail("Not enough downloadStatusEvent expectations set. " + "Next expect needed appears to be : "
+ actual.getType());
}
DownloadEventType expected = events.get(currentEventIdx++);
assertEquals(expected, actual.getType());
}