### Question:
HMapKI implements MapKI<K>, Cloneable, Serializable { @Override public String toString() { Iterator<MapKI.Entry<K>> i = entrySet().iterator(); if (!i.hasNext()) return "{}"; StringBuilder sb = new StringBuilder(); sb.append('{'); for (;;) { MapKI.Entry<K> e = i.next(); K key = e.getKey(); int value = e.getValue(); sb.append(key); sb.append('='); sb.append(value); if (!i.hasNext()) return sb.append('}').toString(); sb.append(", "); } } @SuppressWarnings("unchecked")  HMapKI(int initialCapacity, float loadFactor);  HMapKI(int initialCapacity); @SuppressWarnings("unchecked")  HMapKI();  HMapKI(MapKI<? extends K> m); @Override int size(); @Override boolean isEmpty(); @Override int get(K key); @Override boolean containsKey(K key); @Override int put(K key, int value); @Override void putAll(MapKI<? extends K> m); @Override int remove(K key); @Override void clear(); @Override boolean containsValue(int value); @SuppressWarnings("unchecked") @Override Object clone(); @Override Set<K> keySet(); @Override Collection<Integer> values(); @Override Set<MapKI.Entry<K>> entrySet(); @Override String toString(); @Override void plus(MapKI<K> m); @Override long dot(MapKI<K> m); @Override void increment(K key); @Override void increment(K key, int value); @SuppressWarnings("unchecked") MapKI.Entry<K>[] getEntriesSortedByValue(); MapKI.Entry<K>[] getEntriesSortedByValue(int n); @SuppressWarnings("unchecked") MapKI.Entry<K>[] getEntriesSortedByKey(); MapKI.Entry<K>[] getEntriesSortedByKey(int n);  }### Answer:
@Test public void testToString() throws IOException { HMapKI<String> m1 = new HMapKI<String>(); m1.put("hi", 5); m1.put("there", 22); assertEquals("{there=22, hi=5}", m1.toString()); }