[hibernate-dev] Making tests nicer with lambdas