List steps = getPlatform().getFlowConnector().connect( sources, sinks, pipe ).getFlowSteps();
assertEquals( "wrong size", 1, steps.size() );
BaseFlowStep step = (BaseFlowStep) steps.get( 0 );
assertEquals( "not equal: step.sources.size()", 1, step.getSourceTaps().size() );
assertNotNull( "null: step.groupBy", step.getGroup() );
assertNotNull( "null: step.sink", step.getSink() );
int mapDist = countDistance( step.getElementGraph(), (FlowElement) step.getSourceTaps().iterator().next(), step.getGroup() );
assertEquals( "not equal: mapDist", 0, mapDist );
int reduceDist = countDistance( step.getElementGraph(), step.getGroup(), step.getSink() );
assertEquals( "not equal: reduceDist", 1, reduceDist );
}