### Question:
HMapII implements MapII, Cloneable, Serializable { @Override public void increment(int key) { if (this.containsKey(key)) { this.put(key, this.get(key) + 1); } else { this.put(key, 1); } } 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 testIncrement() { HMapII m = new HMapII(); assertEquals(0, m.get(1)); m.increment(1); assertEquals(1, m.get(1)); m.increment(1, 5); m.increment(2, 0); m.increment(3, 2); assertEquals(6, m.get(1)); assertEquals(0, m.get(2)); assertEquals(2, m.get(3)); }