log.error(ex);
System.err.println(ex);
    public void testRetransmits() {	Entry  entry;	MyTask task;	int    num_non_correct_entries=0;	win=new Timer();			// 1. Add NUM_MSGS messages:	System.out.println("-- adding " + NUM_MSGS + " messages:");	for(long i=0; i < NUM_MSGS; i++) {	    entry=new Entry(i);	    task=new MyTask(entry);	    msgs.put(new Long(i), entry);	    win.schedule(task, entry.next());	}	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()) {		num_non_correct_entries++;	    }	}		if(num_non_correct_entries > 0)	    log.error("Number of incorrect retransmission timeouts: " + num_non_correct_entries);	else {	    for(long i=0; i < NUM_MSGS; i++) {		entry=(Entry)msgs.get(new Long(i));		if(entry != null)		    System.out.println(i + ": " + entry);	    }	}	assertTrue(num_non_correct_entries == 0);	try {	    win.cancel();	}	catch(Exception ex) {	    log.error(ex);	}    }