@Test
public final void test_isValidResourceFlags_happyPath() {

	Map<String, RangerPolicyResource> resourceMap = _utils.createPolicyResourceMap(policyResourceMap_happyPath);
	List<RangerResourceDef> resourceDefs = _utils.createResourceDefs(resourceDef_happyPath);
	when(_serviceDef.getResources()).thenReturn(resourceDefs);
	Assert.assertTrue(_validator.isValidResourceFlags(resourceMap, _failures, resourceDefs, "a-service-def", "a-policy", true));
	// Since one of the resource has excludes set to true, without admin privilages it should fail and contain appropriate error messages
	Assert.assertFalse(_validator.isValidResourceFlags(resourceMap, _failures, resourceDefs, "a-service-def", "a-policy", false));
	_utils.checkFailureForSemanticError(_failures, "isExcludes", "isAdmin");
}