### Question:
LruMap extends LinkedHashMap<K, V> { public static <K, V> LruMap<K, V> accessOrder(int maxEntries) { return new LruMap<>(maxEntries, true); } private  LruMap(int maxEntries, boolean accessOrder); static LruMap<K, V> insertionOrder(int maxEntries); static LruMap<K, V> accessOrder(int maxEntries);  }### Answer:
@Test public void testMruMap_accessOrder() { Map<Integer, String> lruMap = LruMap.accessOrder(5); putGet(lruMap); assertTrue(lruMap.keySet().equals(new HashSet<>(Arrays.asList(1, 3, 4, 5, 6)))); }