@Test
public void testReduceWithGroupOrder() {
// construct the plan
FileDataSource source = new FileDataSource(new DummyInputFormat(), IN_FILE, "Source");
ReduceOperator reduce = ReduceOperator.builder(new IdentityReduce()).keyField(IntValue.class, 2).name("Reduce").input(source).build();
Ordering groupOrder = new Ordering(5, StringValue.class, Order.DESCENDING);
reduce.setGroupOrder(groupOrder);
FileDataSink sink = new FileDataSink(new DummyOutputFormat(), OUT_FILE, reduce, "Sink");