CaseRolesPresenter extends AbstractCaseInstancePresenter<CaseRolesPresenter.CaseRolesView> { @Override protected void clearCaseInstance() { getCaseRolesAssignments().clear(); view.removeAllRoles(); view.setBadge(getCaseRolesAssignments().size()); }  @WorkbenchPartTitle String getTittle(); void filterCaseRoles(); void setCaseRoleActions(CaseRoleItemView caseRole); void setCaseRoleAssignments(CaseRoleItemView caseRole,
                                       final int assignmentsListMaxWidth); void storeRoleAssignments(final CaseRoleAssignmentSummary currentRoleAssignments,
                                     List<String> users,
                                     List<String> groups); static final String SCREEN_ID; static final String CASE_OWNER_ROLE; }
@Test public void testClearCaseInstance() { List<CaseRoleAssignmentSummary> caseRoleAssignmentSummaryList = new ArrayList<>(); caseRoleAssignmentSummaryList.add(CaseRoleAssignmentSummary.builder().name(CASE_ROLE).build()); presenter.setCaseRolesAssignments(caseRoleAssignmentSummaryList); assertEquals(1, presenter.getCaseRolesAssignments().size()); presenter.clearCaseInstance(); assertEquals(0, presenter.getCaseRolesAssignments().size()); verify(view).removeAllRoles(); verify(view).setBadge(0); }