ScanManyArtifactsMojo extends AbstractITestWithPlanMojo { @Override protected void executeGuardedIntegrationTest() throws MojoFailureException { performScan(listScanFiles()); }    }
@Test public void testExecuteGuardedIntegrationTest() throws Exception { final File testOutDir = new File(testOutBaseDir, "testExecuteGuardedIntegrationTest"); FileUtils.deleteDirectory(testOutDir); testOutDir.mkdirs(); ScanManyArtifactsMojo mojo = newMojo(); mojo.summaryFile = new File(testOutDir, "summary.json"); mojo.executeGuardedIntegrationTest(); }