### Question:
SimpleHashtable implements Iterable<TableEntry<K, V>> { public boolean isEmpty() { return size() == 0; } 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 testIsEmptyWithEmptyTable() { assertTrue(createHashTableWithNElements(0).isEmpty()); }
@Test void testIsEmptyWIthNonEmptyTable() { assertFalse(createHashTableWithNElements(5).isEmpty()); }