public void testAnd2() throws Exception {
QueryFactory qf = getQueryFactory();
Query q = qf.from(getModelFactory().getUserImplClass())
.having("name").eq("Spider")
.and(qf.having("surname").eq("Man"))
.toBuilder().build();
List<User> list = q.list();
assertEquals(1, list.size());
assertEquals(2, list.get(0).getId());