@Override
  public DataNodeId getDataNodeId(String hostname, int port) {
    for (DataNodeId dataNodeId : dataNodes) {
      if (dataNodeId.getHostname().compareTo(hostname) == 0 && dataNodeId.getPort() == port) {
        return dataNodeId;
      }
    }
    return null;
  }
Return if ssl ports are enabled in this cluster.
ambry-test-utils/src/main/java/com/github/ambry/clustermap/MockClusterMap.java