@Test
public void testAddAssertion() {

    Policy policy = new Policy();
    ZMSUtils.addAssertion(policy, "service", "update", "writers", AssertionEffect.ALLOW);
    ZMSUtils.addAssertion(policy, "table", "delete", "writers", AssertionEffect.DENY);
    assertEquals(policy.getAssertions().size(), 2);
    Assertion assertion = policy.getAssertions().get(1);
    assertEquals(assertion.getResource(), "table");
    assertEquals(assertion.getRole(), "writers");
    assertEquals(assertion.getAction(), "delete");
    assertEquals(assertion.getEffect(), AssertionEffect.DENY);
}