[hibernate-issues] [JIRA] (HHH-10521) Fix Java 6 not compliant tests