Write a mock that returns a known value from the getServingUrl method, and then make sure your class reads that value correctly and uses it to execute the load request. You must assume that in this case the GAE code will do the right thing. The only logic you should relate to is that it reads this url from GAE and subsequently sends its blob data to it.
source share