I was testing database transaction with different isolation levels using annotation
@Transactional(rollbackFor = Exception.class, isolation = Isolation.SERIALIZ