TimeBasedExpiringValueMap { public V get(K key) { TimedKeyValue<K, V> v = map.get(key); if (v != null) { removeExpired(v); return v.getValue(); } expireCheck(); return null; } TimeBasedExpiringValueMap(TimeService timeService);  TimeBasedExpiringValueMap(TimeService timeService, long timeoutMilliseconds); void put(K key, V value); V get(K key); V remove(K key); int size(); void clear(); static final long DEFALT_TIMEOUT; }
@Test public void no_value() { assertNull(map.get(generator.generate())); }