ClusterViewServiceImpl clusterViewService,
AnnouncementRegistry topologyRegistry,
ResourceResolverFactory resourceResolverFactory, Config config,
ConnectorRegistry connectorRegistry, Scheduler scheduler)
throws Exception {
DiscoveryServiceImpl discoveryService = new DiscoveryServiceImpl();
PrivateAccessor.setField(discoveryService, "settingsService",
MockFactory.mockSlingSettingsService(slingId));
PrivateAccessor.setField(discoveryService, "heartbeatHandler",
heartbeatHandler);
PrivateAccessor.setField(discoveryService, "clusterViewService",