@Then("^the zNode '(.+?)' exists( and contains '(.+?)')?$")
    public void checkZnodeExists(String zNode, String foo, String document) throws Exception {
        if (document == null) {
            String breakpoint = commonspec.getZookeeperSecClient().zRead(zNode);
            assert breakpoint.equals("") : "The zNode does not exist";
        } else {
            assert commonspec.getZookeeperSecClient().zRead(zNode).contains(document) : "The zNode does not exist or the content does not match";
        }
    }
@ Then ( "^the zNode '(.+?)' exists( and contains '(.+?)')?$" ) public void checkZnodeExists ( String zNode , String foo , String document ) throws Exception { if ( document == null ) { String breakpoint = commonspec . getZookeeperSecClient ( ) . zRead ( zNode ) ; assert breakpoint . equals ( "" ) : "The zNode does not exist" ; } else { assert commonspec . getZookeeperSecClient ( ) . zRead ( zNode ) . contains ( document ) : "The zNode does not exist or the content does not match" ; } }
Read zPath

@param zNode    path at zookeeper
@param document expected content of znode