@Test
    @LoadGraphWith(MODERN)
    public void g_V_repeatXoutE_inVX_timesX2X_path_by_name_by_label() {
        final Traversal<Vertex, Path> traversal = get_g_V_repeatXoutE_inVX_timesX2X_path_by_name_by_label();

        printTraversalForm(traversal);
        int counter = 0;
        while (traversal.hasNext()) {
            counter++;
            final Path p = traversal.next();
            assertEquals("marko", p.get(0));
            assertEquals("knows", p.get(1));
            assertEquals("josh", p.get(2));
            assertEquals("created", p.get(3));
            assertThat(p.get(4), oneOf("ripple", "lop"));
        }
        assertEquals(2, counter);
        assertFalse(traversal.hasNext());
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatTest.java