### Question:
LRUCache { public void clear() { synchronized ( _map ) { _map.clear(); } } LRUCache( final int size );  LRUCache( final int size, final long ttlInMillis ); void clear(); V put( final K key, final V value ); V putIfDifferent( final K key, final V value ); V remove( final K key ); V get( final K key ); boolean containsKey( final K key ); List<K> getKeys(); List<K> getKeysSortedByValue( final Comparator<V> comparator );  }### Answer:
@Test public void testClear() { final LRUCache<String,Integer> cut = new LRUCache<String, Integer>( 3 ); cut.put("foo", 1); cut.clear(); assertNull(cut.get("foo")); }