}
}
}
public void testIndexMapUpdateItemInTxRollback() throws Exception {
Mapper mapper = new Mapper();
Map<String, Integer> map = new HashMap<String, Integer>();
map.put("key1", 10);
map.put("key2", 20);
mapper.setIntMap(map);
mapper = database.save(mapper);
database.begin();
Mapper loadedMapper = (Mapper) database.load(new ORecordId(mapper.getId()));
loadedMapper.getIntMap().put("key2", 40);
loadedMapper = database.save(loadedMapper);
database.rollback();
final List<ODocument> resultByKey = database.command(new OCommandSQL("select key, rid from index:mapIndexTestKey")).execute();