### Question:
HMapIV implements MapIV<V>, Cloneable, Serializable { @SuppressWarnings("unchecked") public MapIV.Entry<V>[] getEntriesSortedByValue() { if (this.size() == 0) return null; MapIV.Entry<V>[] entries = new Entry[this.size()]; int i = 0; Entry<V> next = null; int index = 0; while (index < table.length && (next = table[index++]) == null) ; while (next != null) { Entry<V> e = next; next = e.next; if ((next = e.next) == null) { while (index < table.length && (next = table[index++]) == null) ; } entries[i++] = e; } Arrays.sort(entries, new Comparator<MapIV.Entry<V>>() { public int compare(MapIV.Entry<V> e1, MapIV.Entry<V> e2) { return ((Comparable<V>) e1.getValue()).compareTo(e2.getValue()); } }); return entries; } @SuppressWarnings("unchecked")  HMapIV(int initialCapacity, float loadFactor);  HMapIV(int initialCapacity); @SuppressWarnings("unchecked")  HMapIV();  HMapIV(MapIV<V> m); int size(); boolean isEmpty(); V get(int key); boolean containsKey(int key); V put(int key, V value); void putAll(MapIV<V> m); V remove(int key); void clear(); boolean containsValue(V value); @SuppressWarnings("unchecked") Object clone(); Set<Integer> keySet(); Collection<V> values(); Set<MapIV.Entry<V>> entrySet(); String toString(); @SuppressWarnings("unchecked") MapIV.Entry<V>[] getEntriesSortedByValue(); MapIV.Entry<V>[] getEntriesSortedByValue(int n);  }### Answer:
@Test public void testSortedEntries4() { HMapIV<String> m = new HMapIV<String>(); MapIV.Entry<String>[] e = m.getEntriesSortedByValue(); assertTrue(e == null); }