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