@Test(expected = NullPointerException.class)
public void addIndexedKeyNull() {

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