@Test
@Transactional
public void testGetCriterionTypesByResourceType() {
// Add RESOURCE criterionType
CriterionType criterionType = createValidCriterionType();
criterionType.setResource(ResourceEnum.WORKER);
criterionTypeDAO.save(criterionType);
// Add WORKER criterionType
criterionType = createValidCriterionType();
criterionType.setResource(ResourceEnum.WORKER);
criterionTypeDAO.save(criterionType);
// Get number of criterionTypes of type RESOURCE
List<ResourceEnum> resources = new ArrayList<ResourceEnum>();
resources.add(ResourceEnum.WORKER);