@Test
public void testProcessServiceIdentityPublicKey() {

    DataCache cache = new DataCache();
    // null key does not get processed
    cache.processServiceIdentityPublicKey("service1", "id1", null);
    assertNull(cache.getPublicKeyMap().get("service1_id1"));
    // invalid ybase64 encoded key does not get processed
    cache.processServiceIdentityPublicKey("service1", "id1", "invalid-data");
    assertNull(cache.getPublicKeyMap().get("service1_id1"));
    // now valid data
    cache.processServiceIdentityPublicKey("service1", "id1", ZTS_Y64_CERT0);
    assertEquals(cache.getPublicKeyMap().get("service1_id1"), ZTS_PEM_CERT0);
}