@Test
    @LoadGraphWith(MODERN)
    @FeatureRequirement(featureClass = Graph.Features.EdgeFeatures.class, feature = Graph.Features.EdgeFeatures.FEATURE_ADD_EDGES)
    public void g_V_hasLabelXpersonX_asXpX_VXsoftwareX_addInEXuses_pX() {
        final Traversal<Vertex, Edge> traversal = get_g_V_hasLabelXpersonX_asXpX_VXsoftwareX_addInEXuses_pX();
        printTraversalForm(traversal);
        int counter = 0;
        while (traversal.hasNext()) {
            final Edge edge = traversal.next();
            assertEquals("uses", edge.label());
            assertEquals("person", edge.outVertex().label());
            assertEquals("software", edge.inVertex().label());
            counter++;
        }
        assertEquals(8, counter);
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/GraphTest.java