public String configureConnector(String connName, Map<String, String> connConfig) {
        String url = endpointForResource(String.format("connectors/%s/config", connName));
        return putConnectorConfig(url, connConfig);
    }
Configure a connector. If the connector does not already exist, a new one will be created and
the given configuration will be applied to it.

@param connName   the name of the connector
@param connConfig the intended configuration
@throws ConnectRestException if the REST API returns error status
@throws ConnectException if the configuration fails to be serialized or if the request could not be sent
connect/runtime/src/test/java/org/apache/kafka/connect/util/clusters/EmbeddedConnect.java