List<User> list = q.list();
assertEquals(0, list.size());
}
public void testAnd4() throws Exception {
QueryFactory qf = Search.getQueryFactory(remoteCache);
//test for parenthesis, "and" should have higher priority
Query q = qf.from(User.class)
.having("name").eq("Spider")
.or(qf.having("name").eq("John"))
.and(qf.having("surname").eq("Man"))
.toBuilder().build();
List<User> list = q.list();
assertEquals(2, list.size());
}