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;        // 1. Add NUM_MSGS messages:        System.out.println("-- adding " + NUM_MSGS + " messages:");        for(long i=0; i < NUM_MSGS; i++) {            entry=new Entry(i);            msgs.put(new Long(i), entry);            timer.add(entry);        }        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);    }