assertEquals(1, i.get());
}
@Test
public void testCollision() {
IntListHashMap m = new IntListHashMap(10);
m.put(5, 1);
m.put(5, 2);
m.put(5, 3);
m.put(15, 4);
m.put(15, 5);
m.put(15, 6);
IntIterator i = m.getReverse(5);
assertNotNull(i);
assertTrue(i.next());
assertEquals(3, i.get());
assertTrue(i.next());
assertEquals(2, i.get());
assertTrue(i.next());
assertEquals(1, i.get());
assertFalse(i.next());
i = m.getReverse(15);
assertNotNull(i);
assertTrue(i.next());
assertEquals(6, i.get());