Criteria criteria = new Criteria();
SortedMap<String, Object> indexValues = Maps.newTreeMap();
indexValues.put("data1", "This is data one");
indexValues.put("data2", "This is data two");
criteria.setIndexKeys(indexValues);
List<Map<String, Object>> results = om.list("testtype", criteria);
assertEquals(777L,results.get(0).get("foreignid"));
assertEquals("This is data one",results.get(0).get("data1"));
Map<String,Object> result = om.getByKey("simple", key);
assertEquals("one",result.get("index_1"));