RandomValueNodeGenerator nodeGenerator =
new RandomValueNodeGenerator(session.getValueFactory(), 6, 5, 8, 5, 1024 * 1024);
TreeGenerator generator = new TreeGenerator(testNode, nodeGenerator);
generator.genereteTree();
root.save();
ValueSsh1Generator ssh1Generator = new ValueSsh1Generator(session.getTransientNodesManager(), sshStrream);
((NodeImpl)testNode).getData().accept(ssh1Generator);
sshStrream.close();
File exportFile = new File(System.getProperty("java.io.tmpdir"), "testExport.xml");
OutputStream os = new FileOutputStream(exportFile);
session.exportSystemView(testNode.getPath(), os, false, false);