assertEquals("bad size", 2, map.size());
}
public void testEqualsHashcode() {
final Map<CollectionElementForTest, String> map1 = newMap();
map1.put(new CollectionElementForTest(0, 0), "0");
map1.put(new CollectionElementForTest(1, 0), "1");
map1.put(new CollectionElementForTest(2, 0), "2");
final Map<CollectionElementForTest, String> map2 = newMap();
map2.put(new CollectionElementForTest(0, 1), "0");
map2.put(new CollectionElementForTest(1, 1), "1");
map2.put(new CollectionElementForTest(2, 1), "2");
assertEquals("must be equals", map1, map2);
assertEquals("must have same hashcode", map1.hashCode(),
map2.hashCode());
}