HHH 9078 Test case

See https://hibernate.atlassian.net/browse/HHH-9078