public void testIfConcurrentWritingInTheSameContextThrowsAnException_shouldThrowException() throws Exception {
EKBCommit commit = getTestEKBCommit();
for (int i = 0; i < 30; i++) {
SourceModelA model = new SourceModelA();
model.setEdbId("concurrentTest/1/" + i);
commit.addInsert(model);
}
EKBCommit anotherCommit = getTestEKBCommit();
SourceModelA model = new SourceModelA();
model.setEdbId("concurrentTest/1/30");
anotherCommit.addInsert(model);