The LockTest#testContendedPessimisticLock test fails on Oracle because the underlying Connection gets closed upon getting a lock acquisition failure.