### Question:
LongFloatMap implements Serializable, Cloneable { public void clear() { numEntries = 0; numSlotsUsed = 0; Arrays.fill(keys, KEY_NULL); Arrays.fill(values, VALUE_NULL); } LongFloatMap();  LongFloatMap(int initialCapacity); float get(long key); void increment(long key, float delta); int size(); boolean isEmpty(); boolean containsKey(long key); void put(long key, float value); void remove(long key); void clear(); LongPrimitiveIterator keySetIterator(); Set<MapEntry> entrySet(); void rehash(); @Override LongFloatMap clone(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other);  }### Answer:
@Test public void testClear() { LongFloatMap map = new LongFloatMap(); map.put(500000L, 2.0f); map.clear(); assertEquals(0, map.size()); assertTrue(map.isEmpty()); assertNaN(map.get(500000L)); }