session.exportSystemView("/testBinary", out, false, false);
byte[] output = out.toByteArray();
Node test2 = root.addNode("testBinary2");
Node test3 = root.addNode("testBinary3");
session.save();
session.importXML("/testBinary2", new ByteArrayInputStream(output), ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW);
session.save();
session.getWorkspace().importXML("/testBinary3", new ByteArrayInputStream(output), ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW);
test2 = root.getNode("testBinary2");
test2 = test2.getNode("testBinary");
test3 = root.getNode("testBinary3");