@Test
public void testGetPolicyList() {

    TopLevelDomain dom1 = createTopLevelDomainObject("PolicyListDom1",
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    Policy policy1 = createPolicyObject("PolicyListDom1", "Policy1");
    zms.putPolicy(mockDomRsrcCtx, "PolicyListDom1", "Policy1", auditRef, policy1);
    Policy policy2 = createPolicyObject("PolicyListDom1", "Policy2");
    zms.putPolicy(mockDomRsrcCtx, "PolicyListDom1", "Policy2", auditRef, policy2);
    Policy policy3 = createPolicyObject("PolicyListDom1", "Policy3");
    policy3.setCaseSensitive(true);
    zms.putPolicy(mockDomRsrcCtx, "PolicyListDom1", "Policy3", auditRef, policy3);
    PolicyList policyList = zms.getPolicyList(mockDomRsrcCtx, "PolicyListDom1", null, null);
    assertNotNull(policyList);
    // policy count +1 due to admin policy
    assertEquals(policyList.getNames().size(), 4);
    assertTrue(policyList.getNames().contains("Policy1".toLowerCase()));
    assertTrue(policyList.getNames().contains("Policy2".toLowerCase()));
    assertTrue(policyList.getNames().contains("Policy3".toLowerCase()));
    zms.deleteTopLevelDomain(mockDomRsrcCtx, "PolicyListDom1", auditRef);
}