@Test
public void testProcessDomainServiceIdentities() {

    
    ChangeLogStore clogStore = new MockZMSFileChangeLogStore("/tmp/zts_server_unit_tests/zts_root",
            pkey, "0");
    DataStore store = new DataStore(clogStore, null);
    
    ServiceIdentity service = new ServiceIdentity();
    service.setName("coretech.storage");
    
    List<String> hosts = new ArrayList<>();
    hosts.add("host1");
    service.setHosts(hosts);
    List<ServiceIdentity> services = new ArrayList<>();
    services.add(service);
    
    DomainData domainData = new DomainData();
    domainData.setName("coretech");
    domainData.setServices(services);
    
    DataCache dataCache = new DataCache();
    dataCache.setDomainData(domainData);
    
    store.processDomainServiceIdentities(domainData, dataCache);
    store.addDomainToCache(domainData.getName(), dataCache);
    
    HostServices hostServices = store.getHostServices("host1");
    hosts = hostServices.getNames();
    assertEquals(hosts.size(), 1);
    assertTrue(hosts.contains("coretech.storage"));
}