@Test
public void testDeletePolicyThrowException() {

    TestAuditLogger alogger = new TestAuditLogger();
    ZMSImpl zmsImpl = getZmsImpl(alogger);
    String domainName = "WrongDomainName";
    String policyName = "WrongPolicyName";
    try {
        zmsImpl.deletePolicy(mockDomRsrcCtx, domainName, policyName, auditRef);
        fail("requesterror not thrown.");
    } catch (ResourceException e) {
        assertEquals(e.getCode(), 404);
    }
}