### Question:
KeyStore { public PrivateKey getKey(String path) { ensureKeysLoaded(); PrivateKey key = keys.get(path); return key; } private  KeyStore(String metadataLocation, boolean kmsEnabled); PrivateKey getKey(String path); PrivateKey getKeyOrThrow(String path); static KeyStore of(String metadataLocation, boolean kmsEnabled);  }### Answer:
@Test public void testGetKey() { String metadataLocation = Resources.getResource("pioneer/metadata-local.json").getPath(); KeyStore store = KeyStore.of(metadataLocation, false); assertNotEquals(null, store.getKey("study-foo")); assertNotEquals(null, store.getKey("study-bar")); assertEquals(null, store.getKey("invalid-document-namespace")); }