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")));
Comparison comparison2 = isComparison(and.right());
assertThat(comparison2.getOperand1(), is((DynamicOperand)nodePath(selectorName("mgnl:content"))));
assertThat(comparison2.getOperand2(), is((StaticOperand)literal("/modules/%/other")));