}
public static VotingHandler createVotingHandler(String slingId,
ResourceResolverFactory resourceResolverFactory, Config config)
throws Exception {
VotingHandler votingHandler = new VotingHandler();
PrivateAccessor.setField(votingHandler, "slingSettingsService",
MockFactory.mockSlingSettingsService(slingId));
PrivateAccessor.setField(votingHandler, "resolverFactory",
resourceResolverFactory);
PrivateAccessor.setField(votingHandler, "config", config);