Collection<String> userGroupCodes = new ArrayList<String>();
userGroupCodes.add(Group.FREE_GROUP_NAME);
List<String> contentsId = this._contentSearcherManager.loadContentsId(workflowFilters, null, null, userGroupCodes);
assertEquals(0, contentsId.size());
WorkflowSearchFilter f1 = new WorkflowSearchFilter();
f1.setTypeCode("ART");
f1.addAllowedStep(Content.STATUS_READY);
workflowFilters.add(f1);
contentsId = this._contentSearcherManager.loadContentsId(workflowFilters, null, null, userGroupCodes);
assertEquals(1, contentsId.size());
WorkflowSearchFilter f2 = new WorkflowSearchFilter();
f2.setTypeCode("RAH");
f2.addAllowedStep(Content.STATUS_DRAFT);
workflowFilters.add(f2);
contentsId = this._contentSearcherManager.loadContentsId(workflowFilters, null, null, userGroupCodes);
assertEquals(2, contentsId.size());
WorkflowSearchFilter f3 = new WorkflowSearchFilter();
f3.setTypeCode("EVN");
f3.addAllowedStep(Content.STATUS_READY);
workflowFilters.add(f3);
contentsId = this._contentSearcherManager.loadContentsId(workflowFilters, null, null, userGroupCodes);
assertEquals(2, contentsId.size());
}