### Question:
JobExecutionMojo extends JobExecutionMojoBase { @Override public void execute() throws MojoExecutionException, MojoFailureException { final JobExecution execution = getOrCreateOperator().getJobExecution(executionId); getLog().info("Job execution for execution #" + executionId + ":"); getLog().info(" - " + toStr(execution)); }  @Override void execute();  }### Answer:
@Test public void execution() throws Exception { final JobExecutionMojo mojo = mojo(JobExecutionMojo.class); final long id = mojo.getOrCreateOperator().start("simple", null); waitForEnd(mojo.getOrCreateOperator(), id); mojo.executionId = id; mojo.execute(); final String output = BatchEEMojoTestFactory.output(mojo).toLowerCase(Locale.ENGLISH); assertTrue(output.contains("id = #0, batch status = completed")); }