### Question:
ProgressionCommand implements Command, Constant, ReportConstant { @Override public boolean execute(Context context) throws Exception { boolean result = SUCCESS; ProgressionReport report = (ProgressionReport) context.get(REPORT); StepProgression step = report.getProgression().getSteps().get(report.getProgression().getCurrentStep() - 1); step.setRealized(step.getRealized() + 1); boolean force = report.getProgression().getCurrentStep() != STEP.PROCESSING.ordinal() + 1; saveReport(context, force); if (force && context.containsKey(VALIDATION_REPORT)) { saveMainValidationReport(context, force); } if (context.containsKey(CANCEL_ASKED) || Thread.currentThread().isInterrupted()) { log.info("Command cancelled"); throw new CommandCancelledException(COMMAND_CANCELLED); } AbstractParameter params = (AbstractParameter) context.get(CONFIGURATION); if (params.isTest()) { log.info(Color.YELLOW + "Mode test on: waiting 10 s" + Color.NORMAL); Thread.sleep(10000); } return result; }  void initialize(Context context, int stepCount); void start(Context context, int stepCount); void terminate(Context context, int stepCount); void dispose(Context context); void saveReport(Context context, boolean force); void saveMainValidationReport(Context context, boolean force); @Override boolean execute(Context context); static final String COMMAND; }### Answer:
@Test(groups = { "progression" }, description = "execute progression command", dependsOnMethods = { "testProgressionStart" }) public void testProgressionExecute() throws Exception { progression.execute(context); ActionReport report = (ActionReport) context.get(REPORT); Assert.assertNotNull(report.getProgression(), "progression should be reported"); Assert.assertEquals(report.getProgression().getCurrentStep(), STEP.PROCESSING.ordinal() + 1, " progression should be on step processing"); Assert.assertEquals(report.getProgression().getSteps().get(1).getTotal(), 2, " total progression should be 2"); Assert.assertEquals(report.getProgression().getSteps().get(1).getRealized(), 1, " current progression should be 1"); }