private KafkaServer startKafkaServer() {
File tmpDir = Files.createTempDir();
Properties props = createProperties(tmpDir.getAbsolutePath(), 9092, 1);
KafkaConfig kafkaConfig = new KafkaConfig(props);
kafkaServer = new KafkaServer(kafkaConfig, new MockTime());
kafkaServer.startup();
return kafkaServer;
}