@Test
    public void shouldNotThrowContractException() {
        for (int x = 0; x < 1000; x++) {
            final List<Integer> list = new ArrayList<>();
            for (int i = 0; i < 1000; i++) {
                list.add(i);
            }
            __.inject(list).order(Scope.local).by(Order.shuffle).iterate();
            __.inject(list).order(Scope.local).by().by(Order.shuffle).iterate();
            __.inject(list).order(Scope.local).by(Order.shuffle).by().iterate();
            __.inject(list).order(Scope.local).by(__.identity(), Order.shuffle).iterate();
            __.inject(list).order(Scope.local).by().by(__.identity(), Order.shuffle).iterate();
            __.inject(list).order(Scope.local).by(__.identity(), Order.shuffle).by().iterate();
        }
    }
@author Daniel Kuppitz (http://gremlin.guru)
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/OrderLocalStepTest.java