HHH-9347 Test case only.

I tried to fix [HHH-9347](https://hibernate.atlassian.net/browse/HHH-9347) and I couldn’t. I’m too new to Hibernate’s code for this. But here is a test case, annotated with @FailureExpected.