@Test
public void testProcessDomainChecks() {

    MockZMSFileChangeLogStore clogStore = new MockZMSFileChangeLogStore("/tmp/zts_server_unit_tests/zts_root",
            pkey, "0");
    DataStore store = new DataStore(clogStore, null);
    addDomainToDataStore(store, "coretech");
    // first null which will have no effect
    clogStore.setSignedDomains(null);
    store.processDomainChecks();
    // create a new signed domain
    List<SignedDomain> domains = new ArrayList<>();
    SignedDomain signedDomain = createSignedDomain("sports", "weather");
    domains.add(signedDomain);
    SignedDomains signedDomains = new SignedDomains();
    signedDomains.setDomains(domains);
    clogStore.setSignedDomains(signedDomains);
    // now process check which should return new domain sports that
    // we need to add to our store
    store.processDomainChecks();
    // verify we have two domains now
    assertNotNull(store.getDomainData("sports"));
    assertNotNull(store.getDomainData("coretech"));
}