Just pushed my test, if you wanted to work from that... org.hibernate.test.hql.MapFunctionExpressionsTest