assertThat(query.columns().get(1).getPropertyName(), is("text"));
assertThat(query.columns().get(2).selectorName(), is(selectorName("post")));
assertThat(query.columns().get(2).getColumnName(), is("user"));
assertThat(query.columns().get(2).getPropertyName(), is("user"));
// FROM ...
Join join = isJoin(query.source());
assertThat(join.getLeft(), is((Source)namedSelector(selectorName("fincayra.Post"), selectorName("post"))));
assertThat(join.getRight(), is((Source)namedSelector(selectorName("fincayra.User"), selectorName("u"))));
assertThat(join.type(), is(JoinType.INNER));
EquiJoinCondition joinCondition = isEquiJoinCondition(join.getJoinCondition());
assertThat(joinCondition.getSelector1Name(), is("post"));
assertThat(joinCondition.getSelector2Name(), is("u"));
assertThat(joinCondition.getProperty1Name(), is("user"));
assertThat(joinCondition.getProperty2Name(), is("jcr:uuid"));