I was trying to make a unit test that verifies that an exception thrown by hibernate would be handled and would result in a proper response. The exception is a PersistenceEx