assertEquals(result.getNextSequenceNumber(), count);
assertNotNull(result.getTargetedNotifications());
assertEquals(result.getTargetedNotifications().length, count);
// Fetch again: this call triggers purge of old notifications, which changes the earliest sequence number
result = handler.fetchNotifications(result.getNextSequenceNumber(), count + 1, 100);
// Check that the earliest sequence number has changed
long oldEarliest = result.getEarliestSequenceNumber();
result = handler.fetchNotifications(result.getNextSequenceNumber(), count + 1, 100);
if (oldEarliest >= result.getEarliestSequenceNumber()) fail();