@Test
public void testGetAssertion() {

    final String domainName = "get-assertion";
    TopLevelDomain dom1 = createTopLevelDomainObject(domainName,
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    Policy policy = createPolicyObject(domainName, "policy1");
    zms.putPolicy(mockDomRsrcCtx, domainName, "policy1", auditRef, policy);
    Policy policyRes = zms.getPolicy(mockDomRsrcCtx, domainName, "policy1");
    Long assertionId = policyRes.getAssertions().get(0).getId();
    Assertion assertion = zms.getAssertion(mockDomRsrcCtx, domainName, "policy1", assertionId);
    assertNotNull(assertion);
    assertEquals(assertion.getAction(), "*");
    assertEquals(assertion.getResource(), domainName + ":*");
   
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}