final long NUM_RECORD = 1001;
final long SIZE = 467131;
final int REPLICATION = 23;
DataSourceNode source = getSourceNode();
SourcePlanNode planNode = new SourcePlanNode(source, "test node");
Channel channel = new Channel(planNode);
channel.setReplicationFactor(REPLICATION);
// no estimates here
Assert.assertEquals(-1, channel.getEstimatedOutputSize());
Assert.assertEquals(-1, channel.getEstimatedNumRecords());
// set estimates
source.setEstimatedNumRecords(NUM_RECORD);
source.setEstimatedOutputSize(SIZE);
Assert.assertEquals(SIZE * REPLICATION, channel.getEstimatedOutputSize());
Assert.assertEquals(NUM_RECORD * REPLICATION, channel.getEstimatedNumRecords());
}