### Question:
RunningExecutionsMojo extends BatchEEMojoBase { @Override public void execute() throws MojoExecutionException, MojoFailureException { final List<Long> running = getOrCreateOperator().getRunningExecutions(jobName); getLog().info("Running executions (" + running.size() + "):"); for (final Long instance : running) { getLog().info(" - #" + instance); } }  @Override void execute();  }### Answer:
@Test public void running() throws Exception { final RunningExecutionsMojo mojo = mojo(RunningExecutionsMojo.class, "jobName", "simple"); final long id = mojo.getOrCreateOperator().start("simple", new Properties() {{ setProperty("sleep", "3000"); }}); mojo.execute(); final String output = BatchEEMojoTestFactory.output(mojo).toLowerCase(Locale.ENGLISH); assertTrue(output.contains("running executions")); assertTrue(output.contains("#0")); waitForEnd(mojo.getOrCreateOperator(), id); }