String json = newDoc.toJSON();
ODocument loadedDoc = new ODocument().fromJSON(json);
Assert.assertTrue(newDoc.hasSameContentOf(loadedDoc));
Assert.assertTrue(loadedDoc.containsField("map"));
Assert.assertTrue(loadedDoc.field("map") instanceof Map<?, ?>);
Assert.assertTrue(((Map<String, ODocument>) loadedDoc.field("map")).values().iterator().next() instanceof ODocument);
ODocument d = ((Map<String, ODocument>) loadedDoc.field("map")).get("Luca");
Assert.assertEquals(d.field("name"), "Luca");