### Question:
EntityKeyMap { public RSAPrivateKey getKey(EntityIdentifier entityIdentifier, String publicKeyFingerprint) throws NoKeyFoundException { RSAPrivateKey privateKey; if (store.containsKey(entityIdentifier)) { privateKey = store.get(entityIdentifier).get(publicKeyFingerprint); } else { privateKey = null; } if (privateKey == null) { throw new NoKeyFoundException( "Np key found for entity " + entityIdentifier.toString() + " and key ID " + publicKeyFingerprint); } return privateKey; } EntityKeyMap(); void addKey(EntityIdentifier entityIdentifier, String publicKeyFingerprint, RSAPrivateKey privateKey); RSAPrivateKey getKey(EntityIdentifier entityIdentifier, String publicKeyFingerprint);  }### Answer:
@Test(expected = NoKeyFoundException.class) public void getKeyThrowsNoKeyFoundWithNoKeys() throws Exception { assertNull(new EntityKeyMap().getKey(new EntityIdentifier(EntityType.DIRECTORY, UUID.randomUUID()), null)); }