@Test
public void testExecuteDeleteServiceIdentity() {

    String domainName = "servicedeldom1";
    String serviceName = "service1";
    
    TopLevelDomain dom1 = createTopLevelDomainObject(domainName,
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    ServiceIdentity service1 = createServiceObject(domainName,
            serviceName, "http://localhost", "/usr/bin/java", "root",
            "users", "host1");
    zms.putServiceIdentity(mockDomRsrcCtx, domainName, serviceName, auditRef, service1);
    ServiceIdentity serviceRes1 = zms.getServiceIdentity(mockDomRsrcCtx, domainName, serviceName);
    assertNotNull(serviceRes1);
    zms.dbService.executeDeleteServiceIdentity(mockDomRsrcCtx, domainName, serviceName,
            auditRef, "deleteServiceIdentity");
    // this should throw a not found exception
    try {
        zms.getServiceIdentity(mockDomRsrcCtx, domainName, serviceName);
        fail();
    } catch (Exception ex) {
        assertTrue(true);
    }
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}