@Test
public void testCommentOnEol() {

    this.parser = new SubStepDefinitionParser(FAIL_ON_DUPLICATE_SUBSTEPS, this.errorReporter);
    final PatternMap<ParentStep> substepDefs = this.parser.loadSubSteps(new File(
            "./target/test-classes/com/technophobia/substeps/runner/syntax/eol-comment.substeps"));
    Assert.assertNotNull(substepDefs);
    final String def1 = "something else";
    List<ParentStep> list = substepDefs.get(def1);
    Assert.assertThat(list, hasSize(1));
    ParentStep parentStep = list.get(0);
    String line = parentStep.getParent().getLine();
    Assert.assertThat(line, is(def1));
    final String def2 = "and something different";
    list = substepDefs.get(def2);
    Assert.assertThat(list, hasSize(1));
    parentStep = list.get(0);
    line = parentStep.getParent().getLine();
    Assert.assertThat(line, is(def2));
    final String commentedDefine = "a normal comment";
    list = substepDefs.get(commentedDefine);
    Assert.assertThat(list, empty());
}