Add mocking support to HttpUtils