}
assertEquals(6, list.size());
Iterator<PairOfIntLong> iter = list.iterator();
PairOfIntLong e = iter.next();
assertEquals(1, e.getLeftElement());
assertEquals(1, e.getRightElement());
e = iter.next();
assertEquals(2, e.getLeftElement());
assertEquals(4, e.getRightElement());
e = iter.next();
assertEquals(3, e.getLeftElement());
assertEquals(2, e.getRightElement());
e = iter.next();
assertEquals(4, e.getLeftElement());
assertEquals(3, e.getRightElement());
e = iter.next();
assertEquals(5, e.getLeftElement());
assertEquals(7, e.getRightElement());
e = iter.next();
assertEquals(6, e.getLeftElement());
assertEquals(9, e.getRightElement());
}