DefectedStripedMap { public Object get(Object key) { int hash = hash(key); synchronized (locks[hash % N_LOCKS]) { for (Node m = buckets[hash]; m != null; m = m.next) if (m.key.equals(key)) return m.value; } return null; } DefectedStripedMap(int numBuckets); Object get(Object key); void clear();  }
@Test public void showDefect() throws Exception { DefectedStripedMap map = new DefectedStripedMap(100); map.get(key); }