FlexCpdMojo extends AbstractMavenReport { void setSiteRenderer( final SiteRenderer site ) { siteRenderer = site; } FlexCpdMojo();  FlexCpdMojo( final File outputDirectoryToBeSet,
                       final File sourceDirectoryToBeSet,
                       final MavenProject projectToBeSet ); String getDescription( final Locale locale ); final String getName( final Locale locale ); final String getOutputName();  }
@Test public void testExecute() throws MojoExecutionException, IOException { final FlexCpdMojo mojo = new FlexCpdMojo( new File( "target" ), getTestDirectory(), new MavenProjectStub() ); mojo.setSiteRenderer( new DefaultSiteRenderer() ); mojo.execute(); }