@Test
    public void doTest() {
        final String repr = original.getGremlinLang().getGremlin("__");
        for (final TraversalStrategies currentStrategies : this.strategies) {
            final Traversal.Admin<?, ?> currentTraversal = this.original.clone();
            currentTraversal.setStrategies(currentStrategies);
            currentTraversal.applyStrategies();
            assertEquals(repr, this.labels, getKeepLabels(currentTraversal).toString());
            if (null != optimized)
                assertEquals(repr, currentTraversal, optimized);
        }
    }
Always need LazyBarrierStrategy because it will trigger barrier() additions in PathRetractionStrategy.
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategyTest.java