@Test
public void shouldReportDuplicateDefinition() {

    this.parser = new SubStepDefinitionParser(DO_NOT_FAIL_ON_DUPLICATE_SUBSTEPS, this.errorReporter);
    this.parser.parseSubStepFile(new File(
            "./target/test-classes/com/technophobia/substeps/runner/syntax/duplicate-definition.substeps"));
    verify(this.errorReporter).reportSubstepsError(any(SubstepsParsingException.class));
}