Builds a new stream that will output $number_of_chunks chunks of data.

Usage:

my $stream = Apache2::REST::Stream::TestStream->new($number_of_chunks, $delay_between_chunks);

nextChunk

Returns a hash to be served as a chunk of data. undef at the end of the stream.