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