### Question:
CDocReportMojo extends AbstractMavenReport { IncludeFile getIncludeFile(final String filename, final List<String> sourceCode) throws MavenReportException { try { return textParser.parseIncludeFile(filename.toLowerCase(Locale.US), sourceCode); } catch (final CDocParsingException e) { throw new MavenReportException("Failed to parse include file " + filename, e); } } CDocReportMojo();  CDocReportMojo(final TextParser textParser, final ScriptExecutionDetailsParser detailsParser); @Override boolean canGenerateReport(); @Override String getDescription(final Locale locale); @Override String getName(final Locale locale); @Override String getOutputName(); @Override boolean isExternalReport();  }### Answer:
@Test public void testGetIncludeFile() throws Exception { final String filename = "i am THE filename"; final List<String> source = Collections.singletonList("i am the test data."); final IncludeFile includeFile = mock(IncludeFile.class); when(textParser.parseIncludeFile(filename.toLowerCase(Locale.US), source)).thenReturn(includeFile); assertThat(mojo.getIncludeFile(filename, source)).isEqualTo(includeFile); }