@Test
public void shouldParseSelectStarFromSingleSourceWithWhereContainingTwoPathLikeConstraints() {

    query = parse("SELECT * FROM [mgnl:content] WHERE PATH() LIKE '/modules/%/templates' or PATH() like '/modules/%/other'");
    assertThat(query.source(), is(instanceOf(NamedSelector.class)));
    // SELECT * ...
    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")));
    Comparison comparison2 = isComparison(and.right());
    assertThat(comparison2.getOperand1(), is((DynamicOperand)nodePath(selectorName("mgnl:content"))));
    assertThat(comparison2.getOperand2(), is((StaticOperand)literal("/modules/%/other")));
}