Test with a mocked HTTPResponse object.