@Test
public void testValidatePolicyAssertionsValid() {

    
    Assertion assertion = new Assertion();
    assertion.setAction("update");
    assertion.setEffect(AssertionEffect.ALLOW);
    assertion.setResource("domain1:resource1");
    assertion.setRole(ZMSUtils.roleResourceName("domain1", "role1"));
    List<Assertion> assertList = new ArrayList<>();
    assertList.add(assertion);
    
    assertion = new Assertion();
    assertion.setAction("update");
    assertion.setEffect(AssertionEffect.ALLOW);
    assertion.setResource("*:resource1");
    assertion.setRole(ZMSUtils.roleResourceName("domain1", "role1"));
    
    assertList.add(assertion);
    
    assertion = new Assertion();
    assertion.setAction("update");
    assertion.setEffect(AssertionEffect.ALLOW);
    assertion.setResource("domain1:");
    assertion.setRole(ZMSUtils.roleResourceName("domain1", "role1"));
    
    assertList.add(assertion);
    
    try {
        zms.validatePolicyAssertions(assertList, "unitTest");
    } catch (Exception ex) {
        fail(ex.getMessage());
    }
    
    // null should also be valid
    
    try {
        zms.validatePolicyAssertions(null, "unitTest");
    } catch (Exception ex) {
        fail(ex.getMessage());
    }
}