@Test
public void shouldParsePredicatesWithMultipleSeparatePredicates() {

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