// compose failing program
output.setInput(testMapper);
testMapper.setInput(input);
// generate plan
Plan plan = new Plan(output);
plan.setDefaultParallelism(4);
// optimize and compile plan
PactCompiler pc = new PactCompiler(new DataStatistics());
OptimizedPlan op = pc.compile(plan);