@Test
public void testConditionsSubquery() {
MockQueryBuilder builder = new MockQueryBuilder();
SelectQuery<Person> query = new GenericSelectQuery<Person, Object>(builder, Person.class);
Person toSearch = query.target();
BaseSelectQuery<Person> subQuery = query.subQuery(Person.class);
query.eq(toSearch.getMom(), subQuery);
query.contains(toSearch.getFriends(), subQuery);
query.in(toSearch.getMom(), subQuery);
// query.like(toSearch.getMum(), new
// GenericObjectQuery<Person>(Person.class));
query.gt(toSearch.getMom(), subQuery);
query.gtEq(toSearch.getMom(), subQuery);
query.lt(toSearch.getMom(), subQuery);
query.ltEq(toSearch.getMom(), subQuery);
query.notEq(toSearch.getMom(), subQuery);
query.notIn(toSearch.getMom(), subQuery);
query.notContains(toSearch.getMom().getFriends(), subQuery);
// query.notLike(toSearch.getMum().getName(),
// toSearch.getDud().getName());
// query.likeNc(toSearch.getMum().getName(),
// toSearch.getDud().getName());
// query.notLikeNc(toSearch.getMum().getName(),