### Question:
IdeaExecutor implements BatchExtension { public File execute() { if(!project.exists()) { LOG.info("Cannot find: " + project + ". Skipping..."); return null; } TimeProfiler profiler = new TimeProfiler().start("Execute Idea Inspections " + IdeaVersion.getVersion()); CommandLine cmdLine = new CommandLine(jdkHome + "/bin/java"); cmdLine.addArgument("-XX:-UseGCOverheadLimit"); cmdLine.addArgument("-Xmx" + memory); cmdLine.addArgument("-XX:MaxPermSize=" + permSize); cmdLine.addArgument("-Xbootclasspath/a:" + bootJar.getPath()); cmdLine.addArgument("-Djdk." + jdkName + "=" + jdkHome); cmdLine.addArgument("-cp"); cmdLine.addArgument(buildClassPath()); cmdLine.addArgument(IDEA_MAIN_CLASS_NAME); cmdLine.addArgument("inspect"); cmdLine.addArgument(project.getPath()); cmdLine.addArgument(profile.getPath()); cmdLine.addArgument(reportDirectory.getPath()); DefaultExecutor executor = new DefaultExecutor(); executor.setExitValue(0); try { LOG.info("About to execute: \n" + cmdLine.toString()); executor.execute(cmdLine); } catch (Exception e) { throw new SonarException("Can not execute Idea Inspections", e); } finally { profiler.stop(); } return reportDirectory; } IdeaExecutor(IdeaConfiguration configuration); boolean isRunOnce(); File execute();  }### Answer:
@Test public void execute() throws Exception { IdeaConfiguration conf = buildConf(); IdeaExecutor executor = new IdeaExecutor(conf); executor.execute(); }