I'm trying for 2 days now to create a test for this, but I'm unable to make Hibernate throw an error on commit() and not on persist().