assertCommon(response);
final List<DetachedEdge> edgeList = (List<DetachedEdge>) response.getResult().getData();
assertEquals(1, edgeList.size());
final DetachedEdge deserializedEdge = edgeList.get(0);
assertEquals(2l, deserializedEdge.id());
assertEquals("test", deserializedEdge.label());
assertEquals(new Integer(123), (Integer) deserializedEdge.value("abc"));
assertEquals(1, StreamFactory.stream(deserializedEdge.iterators().propertyIterator()).count());
assertEquals(0l, deserializedEdge.iterators().vertexIterator(Direction.OUT).next().id());
assertEquals(Vertex.DEFAULT_LABEL, deserializedEdge.iterators().vertexIterator(Direction.OUT).next().label());
assertEquals(1l, deserializedEdge.iterators().vertexIterator(Direction.IN).next().id());
assertEquals(Vertex.DEFAULT_LABEL, deserializedEdge.iterators().vertexIterator(Direction.IN).next().label());
}