Assert.fail();
} catch (OResponseProcessingException e) {
Assert.assertTrue(e.getCause() instanceof ORecordDuplicatedException);
db.rollback();
} catch (ORecordDuplicatedException oie) {
db.rollback();
}
final List<ODocument> resultAfterCommit = db.query(new OSQLSynchQuery<ODocument>(
"select from index:TransactionUniqueIndexWithDotTest.label"));
Assert.assertEquals(resultAfterCommit.size(), 1);