Mocked the service discovery