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