### Question:
SimpleHashtable implements Iterable<TableEntry<K, V>> { public int size() { return size; } SimpleHashtable(); @SuppressWarnings("unchecked")  SimpleHashtable(int capacity); void put(K key, V value); V get(Object key); int size(); boolean containsKey(Object key); boolean containsValue(Object value); void remove(Object key); boolean isEmpty(); @Override String toString(); void clear(); int getCapacity(); @Override Iterator<TableEntry<K, V>> iterator(); static final int MINIMUM_CAPACITY; static final int DEFAULT_CAPACITY; }### Answer:
@Test void testSizeOfEmptyTable() { assertEquals(0, createHashTableWithNElements(0).size()); }
@Test void testSizeOfNonEmptyTable() { assertEquals(10, createHashTableWithNElements(10).size()); }