@Test(dataProvider="createTimer")
public void testLowerBounds2(TimeScheduler timer) throws Exception {
try {
NakReceiverWindow win=new NakReceiverWindow(sender, cmd, 100, 50, timer);
win.add(100, new Message());
win.add(101, new Message());
win.add(102, new Message());
win.add(103, new Message());
System.out.println("win: " + win);
check(win, 50, 103, 100);
System.out.println("Note that the subsequent warning is expected:");
win.stable(103); // no-op because we haven't even removed 4 messages
check(win, 50, 103, 100);
while(win.remove() != null);
check(win, 50, 103, 103);
win.stable(103);
System.out.println("win: " + win);
check(win, 103, 103, 103);
}
finally {
timer.stop();