@Test
public void testLineNumbersAndParsingWhenCommentIsPresentBetweenSteps() {

    final FeatureFileParser parser = new FeatureFileParser();
    final String featureFile = "./target/test-classes/features/lineNumbers-with-comments.feature";
    final FeatureFile feature = parser.loadFeatureFile(new File(featureFile));
    Assert.assertNotNull(feature);
    final List<Scenario> scenarios = feature.getScenarios();
    Assert.assertThat(scenarios.size(), is(1));
    final Scenario sc1 = scenarios.get(0);
    Assert.assertThat(sc1.getSourceStartOffset(), is(not(-1)));
    // Assert.assertThat(sc1.getSourceEndOffset(), is(not(-1)));
    Assert.assertThat(sc1.getSourceStartLineNumber(), is(8));
    final List<Step> steps = sc1.getSteps();
    Assert.assertThat(steps.size(), is(3));
    final Step s1 = steps.get(0);
    Assert.assertThat(s1.getSourceLineNumber(), is(9));
    final Step s2 = steps.get(1);
    Assert.assertThat(s2.getSourceLineNumber(), is(11));
    final Step s3 = steps.get(2);
    Assert.assertThat(s3.getSourceLineNumber(), is(13));
}