@Parameterized.Parameters()
        public static Iterable<Object[]> generateTestParameters() {
            return Arrays.asList(new Object[][]{
                    {"g.V().out()", g.V().out()},
                    {"g.V().out().out()", g.V().out().out()},
                    {"g.V().out().out().out()", g.V().out().out().out()},
                    {"g.V().out().out().out().out()", g.V().out().out().out().out()}
            });
        }
Test multiple chains of chained graph traversal step
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/language/grammar/ComplexTraversalMethodVisitorTest.java