OrderLimitStrategy extends AbstractTraversalStrategy<TraversalStrategy.OptimizationStrategy> implements TraversalStrategy.OptimizationStrategy { public static OrderLimitStrategy instance() { return INSTANCE; } private  OrderLimitStrategy(); @Override void apply(final Traversal.Admin<?, ?> traversal); static OrderLimitStrategy instance();  }
@Test public void doTest() { traversal.asAdmin().setParent(new TraversalVertexProgramStep(EmptyTraversal.instance(), EmptyTraversal.instance())); applyOrderLimitStrategyStrategy(traversal); assertEquals(limit, TraversalHelper.getFirstStepOfAssignableClass(OrderGlobalStep.class, traversal.asAdmin()).get().getLimit()); }