"N-TRIPLE");
m2.read(getClass().getResource("test12-2.nt").toString(),
"N-TRIPLE");
m1 = LeanDiffPatch.leanify(m1);
m2 = LeanDiffPatch.leanify(m2);
MoleculeDiff diff = LeanDiffPatch.getDiff(m1, m2);
File file = File.createTempFile("test12-serial", ".zip");
diff.serialize(new FileOutputStream(file));
MoleculeDiff diffRec = LeanDiffPatch.deserializeDiff(file);
System.out.println("orig diff");
System.out.println(diff);
System.out.println("reconstructed diff");
System.out.println(diffRec);
System.out.println(diff.getCommonFgNodesInDiffMolecules().size());
System.out
.println(diffRec.getCommonFgNodesInDiffMolecules().size());
Model m2reconstructed = LeanDiffPatch.patch(m1, diffRec);
// m2reconstructed.write(System.out);
System.out.println(LeanDiffPatch.getDiff(m2, m2reconstructed));
assertTrue("reconstructed is isomorphic", m2
.isIsomorphicWith(m2reconstructed));