@Test(expectedExceptions = IllegalStateException.class)
public void testWrongQueryBuilding7() throws Exception {
QueryFactory qf = Search.getSearchManager(cache2).getQueryFactory();
FilterConditionEndContext q1 = qf.from(User.class)
.having("gender");
q1.eq(User.Gender.MALE);
q1.eq(User.Gender.FEMALE);
}