Added the ability to mock a URL, get a specified output stream