CaseStagesPresenter extends AbstractCaseInstancePresenter<CaseStagesPresenter.CaseStagesView> { void setStages() { view.getCaseStageComponentList().forEach(this::setStage); }  @WorkbenchPartTitle String getTitle(); static final String SCREEN_ID; }
@Test public void testClearAndLoadCaseInstance() { final List<CaseStageSummary> stages = asList(createCaseStageSummary(AVAILABLE.getStatus()), createCaseStageSummary(COMPLETED.getStatus())); when(caseManagementService.getCaseStages(any(), any())).thenReturn(stages); final CaseInstanceSummary cis = newCaseInstanceSummary(); setupCaseInstance(cis); verify(caseStagesView).removeAllStages(); verify(caseStagesView).setCaseStagesList(stages); verify(caseStagesView).getCaseStageComponentList(); verify(presenter).setStages(); verifyNoMoreInteractions(caseStagesView); }