public class ReduceAllTest extends CompilerTestBase {
@Test
public void testReduce() {
// construct the plan
FileDataSource source = new FileDataSource(new DummyInputFormat(), IN_FILE, "Source");
ReduceOperator reduce1 = ReduceOperator.builder(new IdentityReduce()).name("Reduce1").input(source).build();
FileDataSink sink = new FileDataSink(new DummyOutputFormat(), OUT_FILE, "Sink");
sink.setInput(reduce1);
Plan plan = new Plan(sink, "AllReduce Test");
plan.setDefaultParallelism(DEFAULT_PARALLELISM);