Mocking out the HTTP parts.