LRUCache implements
		Cache<CacheKeyType, CacheValueType> { @Override public CacheValueType get(CacheKeyType key) { if (!cache.containsKey(key)) { return null; } CacheNode<CacheKeyType, CacheValueType> node = cache.get(key); moveNodeToLast(node); return node.getValue(); } LRUCache();  LRUCache(int capacity); int getCapacity(); void setCapacity(int capacity); @Override int getSize(); @Override CacheValueType get(CacheKeyType key); @Override void put(CacheKeyType key, CacheValueType value); static final int DEFAULT_CAPACITY; }
@Test public void get_emptyCache() { assertNull(tested.get(1)); }