}
public static AnnouncementRegistry createITopologyAnnouncementRegistry(
ResourceResolverFactory resourceResolverFactory, Config config, String slingId)
throws Exception {
AnnouncementRegistry topologyService = new AnnouncementRegistryImpl();
PrivateAccessor.setField(topologyService, "resourceResolverFactory",
resourceResolverFactory);
PrivateAccessor.setField(topologyService, "settingsService",
MockFactory.mockSlingSettingsService(slingId));