public void testCollectionMemberOfParameter() throws Exception {
createCollectionDataSet();
String ejbql = "SELECT a FROM Artist a WHERE :x MEMBER OF a.paintingArray";
EJBQLQuery query = new EJBQLQuery(ejbql);
query.setParameter("x", Cayenne.objectForPK(context, Painting.class, 33010));
List<?> objects = context.performQuery(query);
assertEquals(1, objects.size());
Set<Object> ids = new HashSet<Object>();
Iterator<?> it = objects.iterator();