assertEquals(2, query.getFunction().size());
assertEquals("property1", query.getPropertyName().get(0));
assertEquals("property2", query.getPropertyName().get(1));
XlinkPropertyNameType xlink;
xlink = (XlinkPropertyNameType) query.getXlinkPropertyName().get(0);
assertEquals("gt:propertyA/gt:propertyB", xlink.getValue());
assertEquals("*", xlink.getTraverseXlinkDepth());
assertEquals(BigInteger.valueOf(10), xlink.getTraverseXlinkExpiry());
xlink = (XlinkPropertyNameType) query.getXlinkPropertyName().get(1);
assertEquals("gt:propertyC/gt:propertyD", xlink.getValue());
assertEquals("1", xlink.getTraverseXlinkDepth());
assertNull(xlink.getTraverseXlinkExpiry());
Function function;
function = (Function) query.getFunction().get(0);
assertNotNull(function);
assertEquals("max", function.getName());