ExpiringCache { public V get( K key ) { if ( key != null ) { CacheEntry<V> entry = entries.get( key ); if ( entry != null ) { entry.lock(); try { if ( !entry.isExpired() ) { entry.resetCreationTimestamp(); return entry.getValue(); } } finally { entry.unlock(); } } } 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 testGet() throws Exception { expiringCache.get( object ); }