@Test
public void testProcessLocalDomains() {

    
    ChangeLogStore clogStore = new MockZMSFileChangeLogStore("/tmp/zts_server_unit_tests/zts_root",
            pkey, "0");
    DataStore setupStore = new DataStore(clogStore, null);
    setupStore.loadAthenzPublicKeys();
    SignedDomain signedDomain = createSignedDomain("coretech", "weather");
    setupStore.processDomain(signedDomain, true);
    signedDomain = createSignedDomain("sports", "weather");
    setupStore.processDomain(signedDomain, true);
    
    DataStore store = new DataStore(clogStore, null);
    
    List<String> list = new ArrayList<>();
    list.add("coretech");
    list.add("sports");
    ((MockZMSFileChangeLogStore) store.changeLogStore).setDomainList(list);
    
    int badDomains = store.processLocalDomains(list);
    assertEquals(badDomains, 0);
    
    assertNotNull(store.getDomainData("coretech"));
    assertNotNull(store.getDomainData("sports"));
}