@Test
public void testDelete() throws Exception {

    final ZooKeeper zk = createClient();
    ZooKeeperMain zkMain = new ZooKeeperMain(zk);
    String cmdstring1 = "create -e /node2 data";
    String cmdstring2 = "delete /node2";
    String cmdstring3 = "ls /node2";
    zkMain.cl.parseCommand(cmdstring1);
    Assert.assertTrue(zkMain.processZKCmd(zkMain.cl));
    zkMain.cl.parseCommand(cmdstring2);
    Assert.assertFalse(zkMain.processZKCmd(zkMain.cl));
    zkMain.cl.parseCommand(cmdstring3);
    Assert.assertFalse("", zkMain.processCmd(zkMain.cl));
}