### Question:
AbstractIndexedParser extends DocumentationParserSupport implements Parser { public int getEndingIndex() { return endingIndex; }  abstract T parse(int startingIndex, List<String> lines); int getEndingIndex();  }### Answer:
@Test public void testGetEndingIndex() { final int index = 3; parser.setEndingIndex(index); assertThat(parser.getEndingIndex()).isEqualTo(index); }
@Test public void testGetEndingIndexNeverParsed() { assertThat(parser.getEndingIndex()).isEqualTo(-1); }