MergeNode node = new MergeNode("merge", 2);
node.contextId(UUID.randomUUID());
node.executionNodes(Sets.newHashSet("node1", "node2"));
node.inputTypes(Arrays.<DataType>asList(DataTypes.UNDEFINED, DataTypes.STRING));
Reference nameRef = TestingHelpers.createReference("name", DataTypes.STRING);
GroupProjection groupProjection = new GroupProjection();
groupProjection.keys(Arrays.<DataTypeSymbol>asList(nameRef));
groupProjection.values(Arrays.asList(
new Aggregation(
new FunctionInfo(new FunctionIdent(CountAggregation.NAME, ImmutableList.<DataType>of()), DataTypes.LONG),