@Test
public void shouldParsePredicatesWithOredExpressions() {

    assertThat(parser.parsePredicates(tokenize("[@ex:age<3 or jcr:like(@jcr:title,'%something%')]")),
               is(predicates(or(comparison(attributeNameTest(nameTest("ex", "age")), Operator.LESS_THAN, literal("3")),
                                functionCall(nameTest("jcr", "like"),
                                             attributeNameTest(nameTest("jcr", "title")),
                                             literal("%something%"))))));
}