Added Optimistic Lock Test for JPA too.