cn.downStreamNodes(ImmutableList.of("n1", "n2"));
cn.toCollect(ImmutableList.<Symbol>of(new Value(DataTypes.STRING)));
cn.jobId(UUID.randomUUID());
BytesStreamOutput out = new BytesStreamOutput();
cn.writeTo(out);
BytesStreamInput in = new BytesStreamInput(out.bytes());
CollectNode cn2 = new CollectNode();
cn2.readFrom(in);
assertEquals(cn, cn2);