CollectNode collectNode = new CollectNode("function", testRouting);
Function twoTimesTruthFunction = new Function(
TestFunction.info,
Arrays.<Symbol>asList(testNodeReference)
);
collectNode.toCollect(Arrays.<Symbol>asList(twoTimesTruthFunction, testNodeReference));
collectNode.maxRowGranularity(RowGranularity.NODE);
Object[][] result = operation.collect(collectNode).get();
assertThat(result.length, equalTo(1));
assertThat(result[0].length, equalTo(2));
assertThat((Integer) result[0][0], equalTo(84));