ExpiringCache { public void clear() { entries.clear(); } 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 testClear() throws Exception { expiringCache.clear(); }