public void testCompact() {
RetransmitTable table=new RetransmitTable(3, 10, 0);
for(long i=0; i < 80; i++)
addAndGet(table, i, "hello-" + i);
assert table.size() == 80;
table.purge(59);
assert table.size() == 20;
table.compact();
assert table.size() == 20;
assertCapacity(table.capacity(), table.getLength(), 10);
}