@Test
public void testStandaloneUpAndDown() throws Exception {

  ZKInProcessServer zk = new ZKInProcessServer(2181, "/tmp/flume-test-zk/");
  zk.start();
  ZooKeeper client = new ZooKeeper("localhost:2181", 5000, new Watcher() {
    public void process(WatchedEvent event) {
    }
  });
  Thread.sleep(1000);
  List<String> children = client.getChildren("/", false);
  LOG.warn("Got " + children.size() + " children");
  assertTrue(children.size() > 0);
  zk.stop();
}