validateToyTraversal(traversal);
}
@Test
public void shouldIsolateSteps() {
Traversal traversal = new DefaultTraversal<>();
Step step1 = new IdentityStep(traversal);
Step step2 = new TimeLimitStep<>(traversal, 100);
Step step3 = new RandomStep<>(traversal, 0.5);
Step step4 = new PropertyMapStep(traversal, PropertyType.PROPERTY, "name");
Step step5 = new ShuffleStep<>(traversal);
traversal.addStep(step1);
traversal.addStep(step2);
traversal.addStep(step3);
traversal.addStep(step4);
traversal.addStep(step5);
List<Step> steps;
steps = TraversalHelper.isolateSteps(step1, step5);
assertEquals(3, steps.size());