VerifyMojo extends AbstractITestMojo { @Override void executeGuardedIntegrationTest() throws MojoFailureException { reactToReports(collectReports()); }    }
@Test public void testExecuteGuardedIntegrationTest() throws Exception { final File testOutDir = new File(testOutBaseDir, "testExecuteGuardedIntegrationTest"); VerifyMojo mojo = new VerifyMojo(); final File summaryFile = new File(testOutDir, "summary.json"); final File addSummaryFile = new File(testOutDir, "summary2.json"); mojo.summaryFile = summaryFile; mojo.summaryFiles.add(addSummaryFile); mojo.executeGuardedIntegrationTest(); }