// Add a notification
NotificationListener listener = handler.getServerNotificationListener();
Notification notification = new Notification("dummy", this, 0);
Integer listenerID = new Integer(1);
listener.handleNotification(notification, listenerID);
// Fetch notifications
NotificationResult result = handler.fetchNotifications(-1, 10, 100);
assertEquals(result.getEarliestSequenceNumber(), 0);
assertEquals(result.getNextSequenceNumber(), 1);