// initialize the zk client with (fake) values
zkc.create("/ledgers", new byte[0], ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
zkc.create("/ledgers/available", new byte[0], ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
zkc.close();
PubSubServer hedwigServer = null;
try {
logger.info("starting hedwig broker!");
hedwigServer = new PubSubServer(serverConf, new ClientConfiguration(), new LoggingExceptionHandler());
hedwigServer.start();
} catch (Exception e) {
e.printStackTrace();
}
Assert.assertNotNull("failed to instantiate hedwig pub sub server", hedwigServer);
hedwigServer.shutdown();
serverFactory.shutdown();
zks.shutdown();
zkTmpDir.delete();