### Question:
SecretManagerSecureStoreService extends AbstractIdleService implements SecureStoreService { @Override public SecureStoreData get(String namespace, String name) throws Exception { validate(namespace); try { Secret secret = secretManager.get(namespace, name); SecretMetadata metadata = secret.getMetadata(); return new SecureStoreData(new SecureStoreMetadata(metadata.getName(), metadata.getDescription(), metadata.getCreationTimeMs(), metadata.getProperties()), secret.getData()); } catch (SecretNotFoundException e) { throw new SecureKeyNotFoundException(new SecureKeyId(namespace, name), e); } } @Inject  SecretManagerSecureStoreService(CConfiguration cConf, NamespaceQueryAdmin namespaceQueryAdmin, SecretStore store); @VisibleForTesting  SecretManagerSecureStoreService(NamespaceQueryAdmin namespaceQueryAdmin, SecretManagerContext context,
                                  String type, SecretManager secretManager); @Override List<SecureStoreMetadata> list(String namespace); @Override SecureStoreData get(String namespace, String name); @Override void put(String namespace, String name, String data, @Nullable String description,
                  Map<String, String> properties); @Override void delete(String namespace, String name);  }### Answer:
@Test(expected = SecureKeyNotFoundException.class) public void testKeyNotFound() throws Exception { secureStoreService.get(NAMESPACE1, "nonexistingkey"); }