HHH-8957 - 4.2 - Regression test

https://hibernate.atlassian.net/browse/HHH-8957