ExpiringCache { public V remove( K key ) { if ( key != null ) { CacheEntry<V> entry = entries.remove( key ); if ( entry != null ) { return entry.getValue(); } } return null; } ExpiringCache(); V get( K key ); boolean keyExists( K key ); boolean put( K key, V value, long ttlMs ); boolean put( K key, V value, long ttlMs, EntryExpiryCallback<V> callback ); V remove( K key ); Map<K, CacheEntry<V>> getEntries(); void clear(); int size(); void dispose();  }
@Test public void testRemove() throws Exception { expiringCache.remove( object ); }