I would prefer to mock the http server itself, but I can't figure out whether that's even possible in gaia.  I haven't found any examples in the code of people doing that; mocking the behavior in the request object itself seems to be the pattern.  This is going to make modeling things like error cases and retries awkward, so I'm hoping to find a better solution.  For the current state of the tests, though, this is ok.