@Test
public void testExecutePutServiceIdentity() {

    String domainName = "serviceadddom1";
    String serviceName = "service1";
    
    TopLevelDomain dom1 = createTopLevelDomainObject(domainName,
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    ServiceIdentity service = createServiceObject(domainName,
            serviceName, "http://localhost", "/usr/bin/java", "root",
            "users", "host1");
    zms.dbService.executePutServiceIdentity(mockDomRsrcCtx, domainName, serviceName,
            service, auditRef, "putServiceIdentity");
    ServiceIdentity serviceRes2 = zms.getServiceIdentity(mockDomRsrcCtx, domainName,
            serviceName);
    assertNotNull(serviceRes2);
    assertEquals(serviceRes2.getName(), domainName + "." + serviceName);
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}