@Test public void testKeySet() { map.put("foo", () -> "foovalue"); map.put("bar", () -> "foovalue2"); map.put("baz", () -> "foovalue3"); Set<String> keys = map.keySet(); assertEquals(3, keys.size()); Lists.newArrayList("foo", "bar", "baz").stream().forEach(v -> assertTrue(keys.contains(v))); }
Set<K> keySet() { return map.keySet(); }
RefCountingMap { Set<K> keySet() { return map.keySet(); } }
RefCountingMap { Set<K> keySet() { return map.keySet(); }  }
RefCountingMap { Set<K> keySet() { return map.keySet(); }   }
RefCountingMap { Set<K> keySet() { return map.keySet(); }    }