Junit Test case for Streaming.