@Test
public void testToProducerConfig() {

    val config = ConfigFactory.load("producer.conf");
    val props = ConfigUtil.toProducerConfig(config);
    assertEquals(BOOTSTRAP_SERVERS, props.getProperty(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG));
    assertEquals(CLIENT_ID, props.getProperty(ProducerConfig.CLIENT_ID_CONFIG));
    assertEquals(KEY_SER, props.getProperty(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG));
    assertEquals(VALUE_SER, props.getProperty(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG));
}