@Test
public void testProduceConsume() throws Exception {
int zkPort = IOUtils.chooseFreePort();
int kafkaBrokerPort = IOUtils.chooseFreePort();
try (LocalZKServer localZKServer = new LocalZKServer(zkPort);
LocalKafkaBroker localKafkaBroker = new LocalKafkaBroker(kafkaBrokerPort, zkPort)) {
localZKServer.start();
localKafkaBroker.start();
KafkaUtils.deleteTopic("localhost", zkPort, TOPIC);
KafkaUtils.maybeCreateTopic("localhost", zkPort, TOPIC);