The query in this test is actually not valid HQL nor JPQL. The individual "arguments" for "constructor result" need to be simple values; they cannot be entity references as the test tries to do.