ArrayBasedLongToInternalIntFixedLengthBiMap implements LongToInternalIntBiMap { @Override public void clear() { for (int i = 0; i < array.length(); i++) { array.set(i, defaultGetKeyReturnValue); } size.set(0); } ArrayBasedLongToInternalIntFixedLengthBiMap(
      int capacity,
      double loadFactor,
      int defaultGetReturnValue,
      long defaultGetKeyReturnValue,
      StatsReceiver statsReceiver); @Override int get(long key); @Override int put(long key); @Override long getKey(int value); @Override void clear();  }
@Test public void testClear() { ArrayBasedLongToInternalIntFixedLengthBiMap arrayBasedLongToInternalIntFixedLengthBiMap = new ArrayBasedLongToInternalIntFixedLengthBiMap((-6206), 2154.072652232, 1, 1, new NullStatsReceiver()); arrayBasedLongToInternalIntFixedLengthBiMap.put(1L); assertEquals(1, arrayBasedLongToInternalIntFixedLengthBiMap.getNumStoredKeys()); assertEquals(16, arrayBasedLongToInternalIntFixedLengthBiMap.getBackingArrayLength()); arrayBasedLongToInternalIntFixedLengthBiMap.clear(); assertEquals(0, arrayBasedLongToInternalIntFixedLengthBiMap.getNumStoredKeys()); assertEquals(16, arrayBasedLongToInternalIntFixedLengthBiMap.getBackingArrayLength()); }