//But is should be present in the correct index
Criteria criteria = new Criteria();
SortedMap<String,Object> values = Maps.newTreeMap();
values.put("foreignid", Long.valueOf(77));
criteria.setIndexKeys(values);
List<Map<String,Object>> indexObjects = om.list("testtype", criteria);
assertEquals(1, indexObjects.size());
assertEquals(null,indexObjects.get(0).get("instance"));
assertEquals(77L,indexObjects.get(0).get("foreignid"));
assertEquals(101,indexObjects.get(0).get("type"));
assertEquals(103,indexObjects.get(0).get("filtered"));