try {
OrientVertexType vertexType = g.createVertexType("EmbeddedClass");
vertexType.createProperty("embeddedList", OType.EMBEDDEDLIST);
OrientVertex vertex = g.addVertex("class:EmbeddedClass");
List<ODocument> embeddedList = new ArrayList<ODocument>();
ODocument docOne = new ODocument();
docOne.field("prop", "docOne");
ODocument docTwo = new ODocument();
docTwo.field("prop", "docTwo");
embeddedList.add(docOne);
embeddedList.add(docTwo);
vertex.setProperty("embeddedList", embeddedList);
final Object id = vertex.getId();
g.shutdown();
g = new OrientGraph(URL, "admin", "admin");
vertex = g.getVertex(id);
embeddedList = vertex.getProperty("embeddedList");
docOne = embeddedList.get(0);
Assert.assertEquals(docOne.field("prop"), "docOne");
docTwo = embeddedList.get(1);