ConcurrentHashTokenMap extends ConcurrentHashMap<Key<N, ? extends T>, T> implements ConcurrentTokenMap<N, T> { @Override public ConcurrentMap<Key<N, ? extends T>, T> map() { return this; } ConcurrentHashTokenMap();   ConcurrentHashTokenMap(int capacity); @Override ConcurrentMap<Key<N, ? extends T>, T> map();  }
@Test void map() { assertSame(map, map.map()); }
@Test void map() { assertSame(proxied, map.map()); }