@Test
public void testGetPublicKey() {

    ChangeLogStore clogStore = new MockZMSFileChangeLogStore("/tmp/zts_server_unit_tests/zts_root",
            pkey, "0");
    DataStore store = new DataStore(clogStore, null);
    store.publicKeyCache.put("coretech.storage_0", "PublicKey0");
    store.publicKeyCache.put("sports.storage_0", "PublicKey0");
    store.publicKeyCache.put("sports.storage_1", "PublicKey1");
    Map<String, String> addKeys = new HashMap<>();
    addKeys.put("sports.storage_1", "PublicKey1");
    addKeys.put("sports.storage_2", "PublicKey2");
    
    store.addPublicKeys(addKeys);
    assertEquals(store.getPublicKey("coretech", "storage", "0"), "PublicKey0");
    assertEquals(store.getPublicKey("sports", "storage", "0"), "PublicKey0");
    assertEquals(store.getPublicKey("sports", "storage", "1"), "PublicKey1");
    assertEquals(store.getPublicKey("sports", "storage", "2"), "PublicKey2");
}