@Test
public void shouldParsePredicatesWithAndedExpressions() {

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