//this query is equivalent to (false and (false or true)) and
//should always return 0 rows
EJBQLQuery query = new EJBQLQuery("select a from Artist a " +
"where a.artistName <> a.artistName and " +
"(a.artistName <> a.artistName or a.artistName = a.artistName)");
assertEquals(context.performQuery(query).size(), 0);
//on the other hand, the following is equivalent to (false and false) or true) and
//should return >0 rows
query = new EJBQLQuery("select a from Artist a " +
"where a.artistName <> a.artistName and " +