@Test
public void testEKBUpdateCommit_shouldWork() throws Exception {
TestModelDecorator model = getTestModelDecorator();
model.setName("test1");
model.setEdbId("batchevent/1");
EKBCommit commit = getTestEKBCommit().addInsert(model.getModel());
persist.commit(commit);
EDBObject obj = edbService.getObject(getModelOid("batchevent/1"));
String name1 = obj.getString("name");
Integer version1 = obj.getObject(EDBConstants.MODEL_VERSION, Integer.class);
model.setName("test2");
commit = getTestEKBCommit().addUpdate(model.getModel());
TestModelDecorator model2 = getTestModelDecorator();
model2.setName("test3");
model2.setEdbId("batchevent/2");
commit.addInsert(model2.getModel());
persist.commit(commit);
obj = edbService.getObject(getModelOid("batchevent/1"));
String name2 = obj.getString("name");
Integer version2 = obj.getObject(EDBConstants.MODEL_VERSION, Integer.class);