@Test
public void remove() {

  String attributeName = "name";
  MyObject object = new MyObject();
  object.name = attributeName;
  Set<String> keySet = new HashSet<String>();
  keySet.add(attributeName);
  doReturn(keySet).when(indexes).keySet();
  doReturn(cacheIndex).when(indexes).get(attributeName);
  doNothing().when(cacheIndex).remove(object, object);
  handler.remove(object, object);
  verify(cacheIndex).remove(attributeName, object);
  verify(indexes).get(attributeName);
}