### Question:
HMapII implements MapII, Cloneable, Serializable { @Override public int put(int key, int value) { int hash = hash(key); int i = indexFor(hash, table.length); for (Entry e = table[i]; e != null; e = e.next) { int k; if (e.hash == hash && ((k = e.key) == key || key == k)) { int oldValue = e.value; e.value = value; e.recordAccess(this); return oldValue; } } modCount++; addEntry(hash, key, value, i); return DEFAULT_VALUE; } HMapII(int initialCapacity, float loadFactor);  HMapII(int initialCapacity);  HMapII();  HMapII(MapII m); @Override int size(); @Override boolean isEmpty(); @Override int get(int key); @Override boolean containsKey(int key); @Override int put(int key, int value); @Override void putAll(MapII m); @Override int remove(int key); @Override void clear(); @Override boolean containsValue(int value); @Override Object clone(); @Override Set<Integer> keySet(); @Override Collection<Integer> values(); @Override Set<MapII.Entry> entrySet(); @Override String toString(); @Override void plus(MapII m); @Override long dot(MapII m); @Override void increment(int key); @Override void increment(int key, int value); MapII.Entry[] getEntriesSortedByValue(); MapII.Entry[] getEntriesSortedByValue(int n);  }### Answer:
@Test public void testPut() { HMapII m = new HMapII(); assertEquals(MapII.DEFAULT_VALUE, m.put(1, 5)); assertEquals(5, m.put(1, 6)); assertEquals(6, m.put(1, 2)); assertEquals(2, m.get(1)); }