return false;
}
System.out.println("New notifications fit in now-larger buffer, OK");
// Drop the second buffer and check that the capacity shrinks
nb2.dispose();
NotificationResult nr3 =
nb.fetchNotifications(allListenerFilter, 0,
1000L, Integer.MAX_VALUE);
if (nr3.getEarliestSequenceNumber() != nr.getNextSequenceNumber()) {
System.out.println("After shrink, notifs not dropped as expected");