String resourceType = "Image";
String categoryCodeToAdd = "resCat1";
List<String> groups = new ArrayList<String>();
groups.add(Group.FREE_GROUP_NAME);
try {
ResourceDataBean bean = this.getMockResource(resourceType, mainGroup, resDescrToAdd, categoryCodeToAdd);
// add the resource
this._resourceManager.addResource(bean);
List<String> resources = this._resourceManager.searchResourcesId(resourceType, resDescrToAdd, categoryCodeToAdd, groups);
assertEquals(1, resources.size());