filterList.add(new Filter());
filterList.get(0).setType("COLLECTION");
filterList.get(0).setPath("xxx");
filterList.get(0).setFrom("00aa00aa00aa00aa00aa00aa00aa00aa");
assertEquals("SELECT e FROM Link e WHERE ( :xxx IN ELEMENTS (e.xxx) )", impl.getQuery(Link.class, filterList, null).trim());
Sort sort = new Sort();
sort.setAttribute("xxx");
assertEquals("SELECT e FROM Link e WHERE ( :xxx IN ELEMENTS (e.xxx) ) ORDER BY e.xxx", impl.getQuery(Link.class, filterList, sort).trim());
sort.setDescending(true);
filterList.get(0).setInvert(true);
assertEquals("SELECT e FROM Link e WHERE ( :xxx NOT IN ELEMENTS (e.xxx) ) ORDER BY e.xxx DESC", impl.getQuery(Link.class, filterList, sort).trim());
filterList.get(0).setNullValue(true);
assertEquals("SELECT e FROM Link e WHERE ( e.xxx != NULL ) ORDER BY e.xxx DESC", impl.getQuery(Link.class, filterList, sort).trim());
}