public void CreateConsumerClient()
        {
            var supplier = new DefaultKafkaClientSupplier(new KafkaLoggerAdapter(config));
            var consumer = supplier.GetConsumer(config.ToConsumerConfig("consume"), new StreamsRebalanceListener(null));

            Assert.IsNotNull(consumer);
            Assert.AreEqual("consume", consumer.Name.Split("#")[0]);
        }
        public void CreateConsumerWithStats()
        {
            config.ExposeLibrdKafkaStats = true;
            config.ApplicationId         = "test-app";
            config.ClientId = "test-client";
            var supplier = new DefaultKafkaClientSupplier(new KafkaLoggerAdapter(config), config);

            supplier.MetricsRegistry = new StreamMetricsRegistry();

            var consumerConfig             = config.ToConsumerConfig("consume");
            StreamizConsumerConfig wrapper = new StreamizConsumerConfig(consumerConfig, "thread-1");

            var consumer = supplier.GetConsumer(wrapper, new StreamsRebalanceListener(null));

            Assert.IsNotNull(consumer);
        }