@Test
public void test_isValidPolicyItemAccess_happyPath() {

	
	RangerPolicyItemAccess access = mock(RangerPolicyItemAccess.class);
	when(access.getType()).thenReturn("an-Access"); // valid
	Set<String> validAccesses = Sets.newHashSet(new String[] { "an-access", "another-access" });  // valid accesses should be lower-cased
	
	// both null or true access types are the same and valid
	for (Boolean allowed : new Boolean[] { null, true } ) {
		when(access.getIsAllowed()).thenReturn(allowed);
		Assert.assertTrue(_validator.isValidPolicyItemAccess(access, _failures, validAccesses));
		Assert.assertTrue(_failures.isEmpty());
	}
}