// RepositoryProvider repoProvider = RepositoryProvider.instance();
public static ClusterViewServiceImpl createClusterViewServiceImpl(
String slingId, ResourceResolverFactory resourceResolverFactory, Config config)
throws Exception {
ClusterViewServiceImpl clusterViewService = new ClusterViewServiceImpl();
PrivateAccessor.setField(clusterViewService, "resourceResolverFactory",
resourceResolverFactory);
PrivateAccessor.setField(clusterViewService, "settingsService",
MockFactory.mockSlingSettingsService(slingId));
PrivateAccessor.setField(clusterViewService, "config", config);