public static void main(String[] args) {
TestKafkaProducer tkp = null;
boolean success = false;
try (TestingServer zookeeperTestServer = new TestingServer()) {
final String theTopic = "someTopic-" + new Random().nextInt();
tkp = new TestKafkaProducer(
theTopic,
"localhost:" + zookeeperTestServer.getPort(),
10);
tkp.sendMessages();
tkp.consumeMessages();