MockQueryBuilder tqb = new MockQueryBuilder();
SelectQuery<Person> oq = new GenericSelectQuery<Person, Object>(tqb, Person.class);
Person pers = oq.target();
QueryCondition cond = oq.and();
QueryCondition and1 = cond.and();
and1.eq(pers.getName(), "mary");
and1.eq(pers.getDog().getName(), "mary");
QueryCondition and2 = cond.and();
and2.eq(pers.getName(), "miry");
and2.eq(pers.getDog().getName(), "miry");