Why so much complexity? You just need to mock `HttpRequestFactory`, right? That is just one simple method that returns future.

Why don't you use just simple Mock having one `request` method, returning future and allowing you to further inspect the parameters it was called with?