### Question:
RetryProcessAdditionalAction implements AdditionalProcessAction { @Override public void executeAdditionalProcessAction(String processInstanceId) { List<String> failedActivityIds = findFailedActivityIds(processInstanceId); for (String failedActivityId : failedActivityIds) { progressMessageService.createQuery() .processId(processInstanceId) .taskId(failedActivityId) .type(ProgressMessageType.ERROR) .delete(); } } @Inject  RetryProcessAdditionalAction(FlowableFacade flowableFacade, ProgressMessageService progressMessageService); @Override void executeAdditionalProcessAction(String processInstanceId); @Override Action getApplicableAction();  }### Answer:
@Test void testExecuteAdditionalAction() { retryProcessAdditionalAction.executeAdditionalProcessAction(PROCESS_GUID); Mockito.verify(progressMessageQuery, times(2)) .delete(); }