Vertex vCar = graph.addVertex("class:Car");
graph.addEdge("class:Owns", vUser, vCar, null);
graph.commit();
Iterable<Vertex> res = graph.command(new OCommandSQL("select expand( out('Owns') ) from User")).execute();
assertTrue(res.iterator().hasNext());
assertEquals("Car", res.iterator().next().getProperty("@class").toString());
Iterable<Vertex> resEdge = graph.command(new OCommandSQL("select expand( inE('Owns') ) from Car")).execute();
assertTrue(resEdge.iterator().hasNext());