final String substeps = "./target/test-classes/substeps/duplicates2.substeps";
final IExecutionListener notifier = mock(IExecutionListener.class);
final List<SubstepExecutionFailure> failures = new ArrayList<SubstepExecutionFailure>();
final RootNode rootNode = runExecutionTest(feature, tags, substeps, notifier, failures);
// check the rootNode tree is in the state we expect
Assert.assertThat(rootNode.getResult().getResult(), is(ExecutionResult.FAILED));
final FeatureNode featureNode = rootNode.getChildren().get(0);
final ScenarioNode<?> scenarioNode = featureNode.getChildren().get(0);
Assert.assertThat(scenarioNode.getResult().getResult(), is(ExecutionResult.PARSE_FAILURE));
verify(notifier, times(1)).onNodeFailed(eq(scenarioNode), argThat(any(SubstepsConfigurationException.class)));