UniqueHashIndex extends CacheIndexBase { public void put(Object indexedKey, Object key) { map.put(indexedKey, key); }  void put(Object indexedKey, Object key); void remove(Object indexedKey, Object key); List<Object> equalsTo(Object expectedValue);  }
@Test public void put() { Object object = new Object(); doReturn(null).when(map).put(object, object); index.put(object, object); verify(map).put(object, object); }