System.out.println("win: " + win);
}
public void testMissingMessages4() throws Exception {
NakReceiverWindow win=new NakReceiverWindow(null, 101);
win.add(101, new Message());
win.add(105, new Message());
assertEquals(101, win.getHighestSeen());
win.add(108, new Message());
assertEquals(101, win.getHighestSeen());
win.add(109, new Message());
assertEquals(101, win.getHighestSeen());
System.out.println("win: " + win);
win.add(102, new Message());
assertEquals(102, win.getHighestSeen());
win.add(103, new Message());
win.add(104, new Message());
assertEquals(105, win.getHighestSeen());
win.add(107, new Message());
assertEquals(105, win.getHighestSeen());
win.add(106, new Message());
assertEquals(109, win.getHighestSeen());
win.add(110, new Message());
assertEquals(110, win.getHighestSeen());
win.add(110, new Message());
assertEquals(110, win.getHighestSeen());
System.out.println("win: " + win);
}