}
}
}
public void testIndexMapUpdateOne() {
Mapper mapper = new Mapper();
Map<String, Integer> mapOne = new HashMap<String, Integer>();
mapOne.put("key1", 10);
mapOne.put("key2", 20);
mapper.setIntMap(mapOne);
mapper = database.save(mapper);
final Map<String, Integer> mapTwo = new HashMap<String, Integer>();
mapTwo.put("key3", 30);
mapTwo.put("key2", 20);
mapper.setIntMap(mapTwo);
mapper = database.save(mapper);
final List<ODocument> resultByKey = database.command(new OCommandSQL("select key, rid from index:mapIndexTestKey")).execute();
Assert.assertNotNull(resultByKey);