Notification notification = new Notification("dummy", this, 0);
Integer listenerID = new Integer(1);
for (int i = 0; i < bufferCapacity; ++i) listener.handleNotification(notification, listenerID);
// Fetch first time
NotificationResult result = handler.fetchNotifications(-1, bufferCapacity + 1, 100);
assertEquals(result.getEarliestSequenceNumber(), 0);
assertEquals(result.getNextSequenceNumber(), bufferCapacity);
assertNotNull(result.getTargetedNotifications());
assertEquals(result.getTargetedNotifications().length, 0);