log.error("Number of incorrect retransmission timeouts: " + num_non_correct_entries);
System.err.println("Number of incorrect retransmission timeouts: " + num_non_correct_entries);
    public void testRetransmits() {	Entry entry;	int   num_non_correct_entries=0;	win=new AckSenderWindow(new MyRetransmitCommand(), xmit_timeouts);		// 1. Send NUM_MSGS messages:	System.out.println("-- sending " + NUM_MSGS + " messages:");	for(long i=0; i < NUM_MSGS; i++) {	    msgs.put(new Long(i), new Entry());	    win.add(i, new Message());	}	System.out.println("-- done");	// 2. Wait for at least 4 xmits/msg: total of 1000 + 2000 + 4000 + 8000ms = 15000ms; wait for 20000ms	System.out.println("-- waiting for 20 secs for all retransmits");	Util.sleep(20000);		// 3. Check whether all Entries have correct retransmission times	for(long i=0; i < NUM_MSGS; i++) {	    entry=(Entry)msgs.get(new Long(i));	    if(!entry.isCorrect(i)) {		num_non_correct_entries++;	    }	}		if(num_non_correct_entries > 0)	    log.error("Number of incorrect retransmission timeouts: " + num_non_correct_entries);	assertTrue(num_non_correct_entries == 0);	win.reset();    }