IOUtils.save("kot5.json", FamilyTreeImpl.create(kot5));
IOUtils.save("kot6.json", FamilyTreeImpl.create(kot6));
IOUtils.save("kot7.json", FamilyTreeImpl.create(kot7));
IOUtils.save("nullkot.json", null);
FamilyTree tree1 = IOUtils.load("kot1.json");
assertEquals(kot1, tree1.getRoot());
FamilyTree tree5 = IOUtils.load("kot5.json");
assertEquals(kot5, tree5.getRoot());
assertEquals(tree5, FamilyTreeImpl.create(kot5));
FamilyTree tree6 = IOUtils.load("kot6.json");
assertEquals(kot6, tree6.getRoot());
assertEquals(tree6, FamilyTreeImpl.create(kot6));
FamilyTree tree7 = IOUtils.load("kot7.json");
assertEquals(kot7, tree7.getRoot());
FamilyTree nulltree = IOUtils.load("nullkot.json");
assertTrue(nulltree == null);
}