public void testSameSourceForBranch() throws IOException
{
Map sources = new HashMap();
Map sinks = new HashMap();
sources.put( "a", new Hfs( new TextLine( new Fields( "first", "second" ) ), "input/path/a" ) );
Pipe pipeA = new Pipe( "a" );
Pipe group1 = new GroupBy( "a1", pipeA, Fields.FIRST );
Pipe group2 = new GroupBy( "a2", pipeA, Fields.FIRST );
Pipe merge = new GroupBy( "tail", Pipe.pipes( group1, group2 ), new Fields( "first", "second" ) );
sinks.put( merge.getName(), new Hfs( new TextLine(), "output/path" ) );
Flow flow = getPlatform().getFlowConnector().connect( sources, sinks, merge );
assertEquals( "not equal: steps.size()", 3, flow.getFlowSteps().size() );
}