private VcrClusterParticipant createHelixVcrClusterParticipant(int clusterMapPort, int vcrSslPort) throws Exception {
    Properties props = new Properties();
    props.setProperty("clustermap.host.name", "localhost");
    props.setProperty("clustermap.resolve.hostnames", "false");
    props.setProperty("clustermap.cluster.name", "clusterName");
    props.setProperty("clustermap.datacenter.name", "DC1");
    props.setProperty("clustermap.ssl.enabled.datacenters", "DC1,DC2");
    props.setProperty("clustermap.port", Integer.toString(clusterMapPort));
    ClusterMapConfig clusterMapConfig = new ClusterMapConfig(new VerifiableProperties(props));

    props = new Properties();
    props.setProperty("vcr.ssl.port", Integer.toString(vcrSslPort));
    props.setProperty(CloudConfig.VCR_CLUSTER_ZK_CONNECT_STRING, ZK_SERVER_HOSTNAME + ":" + ZK_SERVER_PORT);
    props.setProperty(CloudConfig.VCR_CLUSTER_NAME, VCR_CLUSTER_NAME);
    VerifiableProperties verifiableProperties = new VerifiableProperties(props);
    CloudConfig cloudConfig = new CloudConfig(verifiableProperties);
    return new HelixVcrClusterAgentsFactory(cloudConfig, clusterMapConfig, mockClusterMap, Mockito.mock(AccountService.class),
        new StoreConfig(verifiableProperties), null, new MetricRegistry()).getVcrClusterParticipant();
  }
Helper function to create {@link HelixVcrClusterParticipant}.
@param clusterMapPort The clusterMapPort of the instance.
@param vcrSslPort The vcrSslPort of this vcr.
ambry-vcr/src/test/java/com/github/ambry/vcr/HelixVcrClusterParticipantTest.java