### Question:
Dictionary { public boolean isEmpty() { return size() == 0; } Dictionary(); boolean isEmpty(); int size(); void clear(); void put(K key, V value); V get(Object key);  }### Answer:
@Test void testIsEmptyWithEmptyDictionary() { assertTrue(createDictionaryWithNEntries(0).isEmpty()); }
@Test void testIsEmptyWithNonEmptyDictionary() { assertFalse(createDictionaryWithNEntries(1).isEmpty()); }