session.save();
wc1 = (NodeImpl)session.getItem("/parent/wc1");
picture = wc1.getNode("medias").getNode("picture");
VersionHistoryImporter chversionHistoryImporter =
new VersionHistoryImporter((NodeImpl)picture, new ByteArrayInputStream(childvhout.toByteArray()),
chbaseVersion, chpredecessorsHistory, chversionHistory);
chversionHistoryImporter.doImport();
session.save();
VersionHistoryImporter versionHistoryImporter =
new VersionHistoryImporter((NodeImpl)wc1, new ByteArrayInputStream(vhout.toByteArray()), baseVersion,
predecessorsHistory, versionHistory);
versionHistoryImporter.doImport();
session.save();
assertTrue(picture.isNodeType("mix:versionable"));
assertEquals(chversionHistory, picture.getProperty("jcr:versionHistory").getValue().getString());
assertEquals(chbaseVersion, picture.getProperty("jcr:baseVersion").getValue().getString());