Registers mocks for external services.
Registers a mock for an external service specified by hosts and configured with block.