Map<?, ?> params = query.getParams();
Assert.assertEquals(statement, "select user from org.beangle.ems.security.User user "
+ "where ((exists(from user.groups as g where g.group in(:groups0))))");
Assert.assertNotNull(params);
Assert.assertEquals(params.size(), 1);
Assert.assertEquals(params.get("groups0"), CollectUtils.newArrayList(new GroupBean(1L, "group1")));
}