new Tuple( new Double( 2.0 ) ), new Tuple( new Double( 4.0 ) ),
new Tuple( new Double( -5.0 ) )};
Fields resultFields = new Fields( "field" );
TupleListCollector resultEntryCollector = invokeAggregator( aggregator, arguments, resultFields );
Iterator<Tuple> iterator = resultEntryCollector.iterator();
assertEquals( "got expected value after aggregate", 1.0, iterator.next().getDouble( 0 ), 0.0d );
assertEquals( "got expected value after aggregate", 3.0, iterator.next().getDouble( 0 ), 0.0d );
assertEquals( "got expected value after aggregate", 2.0, iterator.next().getDouble( 0 ), 0.0d );
}