Mocking the stream is a pita