assertEquals("Concatenate", f.getName());
assertEquals(l, f.getParameters().get(0));
assertEquals(pn, f.getParameters().get(1));
}
public void testCatenateThree() {
Literal l1 = ff.literal("http://test?param=");
PropertyName pn = ff.property("intAttribute");
Literal l2 = ff.literal("¶m2=foo");
Expression cat = ExpressionExtractor.catenateExpressions(Arrays.asList(l1, pn, l2));
assertTrue(cat instanceof Function);
Function f = (Function) cat;
assertEquals("Concatenate", f.getName());
assertEquals(l1, f.getParameters().get(0));