public static ArrayList<Port> getListOfPorts(int port, Integer sslPort, Integer http2Port) {
    ArrayList<Port> ports = new ArrayList<Port>();
    ports.add(new Port(port, PortType.PLAINTEXT));
    if (sslPort != null) {
      ports.add(new Port(sslPort, PortType.SSL));
    }
    if (http2Port != null) {
      ports.add(new Port(http2Port, PortType.HTTP2));
    }
    return ports;
  }
Create a cluster map for recovery from the given {@code vcrNode} and {@code recoveryNode}.
The cluster is created such that {@code recoveryNode} has {@code vcrNode}'s replicas as peer replicas.
@param recoveryNode The data node.
@param vcrNode The vcr node.
@param dcName Name of the datacenter.
@return {@link MockClusterMap} object.
ambry-test-utils/src/main/java/com/github/ambry/clustermap/MockClusterMap.java