DATAJPA-412 added unit test for lock mode type check