EvolveCommand extends Command { @Override public void execute() throws CommandException { checkEvolveConfiguration(); consoleWriter.newLine().a("Synchronize Evolve courses with status: ").fg(Ansi.Color.CYAN).a(state). reset().a(" with repository: ").fg(Ansi.Color.CYAN).a(repositoryParam).println(2); Repository repository = commandHelper.findRepositoryByName(repositoryParam); evolve.getCourses() .filter(course -> course.getState().equals(state)) .forEach(course -> { translateCourse(repository, course); }); }  @Override void execute();  }
@Test public void execute() throws Exception { Assume.assumeNotNull(evolve); Repository repository = createTestRepoUsingRepoService(); getL10nJCommander().run("evolve-sync", "-r", repository.getName()); }