@Test
public void testDeleteServiceIdentityThrowException() {

    TestAuditLogger alogger = new TestAuditLogger();
    ZMSImpl zmsImpl = getZmsImpl(alogger);
    String domainName = "WrongDomainName";
    String serviceName = "WrongServiceName";
    try {
        zmsImpl.deleteServiceIdentity(mockDomRsrcCtx, domainName, serviceName, auditRef);
        fail("notfounderror not thrown.");
    } catch (ResourceException e) {
        assertEquals(e.getCode(), 404);
    }
}