InlineFilterStrategy extends AbstractTraversalStrategy<TraversalStrategy.OptimizationStrategy> implements TraversalStrategy.OptimizationStrategy { public static InlineFilterStrategy instance() { return INSTANCE; } private  InlineFilterStrategy(); @Override void apply(final Traversal.Admin<?, ?> traversal); @Override Set<Class<? extends OptimizationStrategy>> applyPost(); @Override Set<Class<? extends OptimizationStrategy>> applyPrior(); static InlineFilterStrategy instance();  }
@Test public void doTest() { final TraversalStrategies strategies = new DefaultTraversalStrategies(); strategies.addStrategies(InlineFilterStrategy.instance()); extras.forEach(strategies::addStrategies); this.original.asAdmin().setStrategies(strategies); this.original.asAdmin().applyStrategies(); assertEquals(this.optimized, this.original); }