title: How to have KafkaProducer to use a mock Schema Registry for testing?
body: <p>I'm using <code>KafkaProducer</code> in my test cases and my producer uses the <code>schemaRegistryUrl</code> which points a my local instance of <code>Schema Registry</code>. Is there a way to mock how <code>KafkaProducer</code> connects with the Schema Registry? That is, to have <code>KafkaProducer/Consumer</code> in my tests to work without a running instance of Schema Registry.</p>