### Question:
HashMap extends Map<K, V> { @Override public int size() { return elementCount; } HashMap();  HashMap(int capacity);  HashMap(int capacity, float loadFactor);  HashMap(Map<K, V> map); @Override void clear(); @Override boolean containsKey(K key); @Override boolean containsValue(V value); @Override Set<MapEntry<K, V>> entrySet(); @Override V get(K key); @Override boolean isEmpty(); @Override Set<K> keySet(); @Override V put(K key, V value); @Override void putAll(Map<? extends K, ? extends V> map); @Override V remove(K key); @Override int size(); @Override Collection<V> values();  }### Answer:
@Test public void test_Constructor() { HashMap<Object, Object> hm2 = new HashMap<Object, Object>(); assertEquals("Created incorrect HashMap", 0, hm2.size()); }
@Test public void testSize() { assertTrue("Returned incorrect size", hm.size() == (objArray.length + 1)); }