Funnily enough, JBoss somehow wrote Hibernate 5.2 so that it's source compatible with Hibernate 5.1 but it's not backwards binary compatible with Hibernate 5.1.
The Jinq code can be compiled against both Hibernate 5.1 and 5.2. But when it's compiled against Hibernate 5.2, it won't work with Hibernate 5.1. When it's compiled against Hibernate 5.1, then I think it will work with Hibernate 5.2, but I don't think Maven provides a way for Jinq to be compiled against Hibernate 5.1 but then use Hibernate 5.2 for testing.
You may just have to recompile your own version of Jinq using the earlier version of Hibernate.