@Test
public void testGetServiceIdentityList() {

    TopLevelDomain dom1 = createTopLevelDomainObject("ServiceListDom1",
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    ServiceIdentity service1 = createServiceObject("ServiceListDom1",
            "Service1", "http://localhost", "/usr/bin/java", "root",
            "users", "host1");
    zms.putServiceIdentity(mockDomRsrcCtx, "ServiceListDom1", "Service1", auditRef, service1);
    ServiceIdentity service2 = createServiceObject("ServiceListDom1",
            "Service2", "http://localhost", "/usr/bin/java", "root",
            "users", "host1");
    zms.putServiceIdentity(mockDomRsrcCtx, "ServiceListDom1", "Service2", auditRef, service2);
    ServiceIdentityList serviceList = zms.getServiceIdentityList(
            mockDomRsrcCtx, "ServiceListDom1", null, null);
    assertNotNull(serviceList);
    assertEquals(serviceList.getNames().size(), 2);
    assertTrue(serviceList.getNames().contains("Service1".toLowerCase()));
    assertTrue(serviceList.getNames().contains("Service2".toLowerCase()));
    zms.deleteTopLevelDomain(mockDomRsrcCtx, "ServiceListDom1", auditRef);
}