assertThat(query.columns().isEmpty(), is(true));
// FROM ...
NamedSelector selector = (NamedSelector)query.source();
assertThat(selector.name(), is(selectorName("mgnl:content")));
assertThat(selector.aliasOrName(), is(selectorName("mgnl:content")));
assertThat(selector.alias(), is(nullValue()));
// WHERE ...
Or and = isOr(query.constraint());
Comparison comparison1 = isComparison(and.left());
assertThat(comparison1.getOperand1(), is((DynamicOperand)nodePath(selectorName("mgnl:content"))));
assertThat(comparison1.getOperand2(), is((StaticOperand)literal("/modules/%/templates")));