final Traversal<Vertex, Edge> traversal = get_g_v1_outE_asXhereX_inV_hasXname_vadasX_backXhereX(convertToVertexId("marko"));
printTraversalForm(traversal);
final Edge edge = traversal.next();
assertEquals("knows", edge.label());
assertEquals(convertToVertexId("vadas"), edge.inV().id().next());
assertEquals(convertToVertexId("marko"), edge.outV().id().next());
assertEquals(0.5d, edge.<Double>value("weight"), 0.0001d);
assertFalse(traversal.hasNext());
}
@Test