authr.validateUser(new Credential[]{new UsernameCredential("root"), new PasswordCredential("exo")});
Identity id = authr.createIdentity(validUser);
ConversationState s = new ConversationState(id);
ConversationState.setCurrent(s);
ctx = new CliAppContext(repService.getDefaultRepository(), PARAMETERS_KEY);
Node root = ctx.getSession().getRootNode();
ctx.setCurrentItem(root);
if (root.hasNode("testJCRClientCommands") == false)
{
Node node = root.addNode("testJCRClientCommands").addNode("childOftestJCRClientCommands");