I'm writing an integration test to force an optimistic locking exception to occur (ie. I want to get the Spring OptimisticLocking exception). However, the DataAccessException mapping that Spring does only seesm to conver teh subclass (StaleObjectStateException) and not StaleStateException. I am getting the latter.
Any ideas? I'm just doing an update using a HibernateTemplate.