The difference between HHH-8161 and this test case, however, is that the LockType.WRITE isn't used, but rather only LockType.OPTIMISTIC (not OPTIMISTIC_FORCE_INCREMENT).