Test JPQL queries