@Parameterized.Parameters(name = "{0}")
    public static Iterable<Object[]> generateTestParameters() {
        return Arrays.asList(new Object[][]{
                {__.order().limit(1), 1l},
                {__.out().order().range(7, 15), 15l},
                {__.order().select("a").limit(7), 7l},
                {__.order().out().limit(10), Long.MAX_VALUE}});
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/OrderLimitStrategyTest.java