### Question:
IncludeDocumentationFactory implements TopLevelDocumentationFactory<IncludeDocumentation> { @Override public int getEndingIndex() { return smoosher.getEndingIndex(); } IncludeDocumentationFactory();  IncludeDocumentationFactory(final DocumentationBlockIndexedSmoosher smoosher); @Override boolean canParse(final int currentIndex, final List<String> source); @Override int getEndingIndex(); @Override IncludeDocumentation parse(final int currentIndex, final List<String> source);  }### Answer:
@Test public void testGetEndingIndex() { when(smoosher.getEndingIndex()).thenReturn(Integer.valueOf(23)); assertThat(smoosher.getEndingIndex()).isEqualTo(23); }