ExpiringCache { public Map<K, CacheEntry<V>> getEntries() { return Collections.unmodifiableMap( entries ); } 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 testGetEntries() throws Exception { expiringCache.getEntries(); }