### Question:
CDocReportMojo extends AbstractMavenReport { @Override protected String getOutputDirectory() { return outputDirectory.getAbsolutePath(); } 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 testGetOutputDirectory() { final String absolutePath = "i am the absolute path"; final File outputDirectory = mock(File.class); when(outputDirectory.getAbsolutePath()).thenReturn(absolutePath); mojo.outputDirectory = outputDirectory; assertThat(mojo.getOutputDirectory()).isEqualTo(absolutePath); }