Assert.assertTrue(((List<String>) docMerge1.field("embeddedList")).get(0) instanceof String);
Assert.assertEquals(((Integer) docMerge1.field("salary")).intValue(), 10000);
Assert.assertEquals(((Integer) docMerge1.field("years")).intValue(), 32);
ODocument docMerge2 = doc1.copy();
docMerge2.merge(doc2, true, false);
Assert.assertTrue(docMerge2.containsField("embeddedList"));
Assert.assertTrue(docMerge2.field("embeddedList") instanceof List<?>);
Assert.assertEquals(((List<String>) docMerge2.field("embeddedList")).size(), 2);
Assert.assertTrue(((List<String>) docMerge2.field("embeddedList")).get(0) instanceof String);