sources.put( "count", new Hfs( new TextLine( new Fields( "first", "second" ) ), "input/path" ) );
sinks.put( "count", new Hfs( new TextLine( new Fields( 0, 1 ) ), "output/path" ) );
Pipe pipe = new Pipe( "count" );
pipe = new GroupBy( pipe, new Fields( 1 ) );
pipe = new Every( pipe, new Fields( 1 ), new TestBuffer( new Fields( "fourth" ), "value" ), new Fields( 0, 1 ) );
pipe = new Every( pipe, new Fields( 1 ), new Count(), new Fields( 0, 1 ) );
try
{
getPlatform().getFlowConnector().connect( sources, sinks, pipe );