* グループごとの最小値を求めるテスト。
*/
@Test
public void withParameter() {
List<StageModel> stages = compile(GroupSortFlowWithParameter.class);
StageModel stage = stages.get(0);
Assume.assumeThat(stage.getReduceUnits().size(), is(1));
ReduceUnit reduce = stage.getReduceUnits().get(0);
Fragment fragment = reduce.getFragments().get(0);
Name name = fragment.getCompiled().getQualifiedName();
ClassLoader loader = start();
PortMapper mapper = new PortMapper(fragment);
MockResult<Ex1> r1 = mapper.add("r1", new Ex1Copier());
MockResult<Ex1> r2 = mapper.add("r2", new Ex1Copier());
@SuppressWarnings("unchecked")
Rendezvous<Writable> f = (Rendezvous<Writable>) create(loader, name, mapper.toArguments());
Segment segment = stage.getShuffleModel().findSegment(fragment.getInputPorts().get(0));
SegmentedWritable value = createShuffleValue(loader, stage);
Ex1 ex1 = new Ex1();
f.begin();