@Test
public void testExecuteDeletePolicy() {

    String domainName = "policydeldom1";
    String policyName = "policy1";
    
    TopLevelDomain dom1 = createTopLevelDomainObject(domainName,
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    Policy policy1 = createPolicyObject(domainName, policyName);
    zms.putPolicy(mockDomRsrcCtx, domainName, policyName, auditRef, policy1);
    Policy policyRes1 = zms.getPolicy(mockDomRsrcCtx, domainName, policyName);
    assertNotNull(policyRes1);
    zms.dbService.executeDeletePolicy(mockDomRsrcCtx, domainName, policyName,
            auditRef, "deletePolicy");
    // we need to get an exception here
    try {
        zms.getPolicy(mockDomRsrcCtx, domainName, policyName);
        fail();
    } catch (Exception ex) {
        assertTrue(true);
    }
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}