### Question:
RemoteSecureStore implements SecureStoreManager, SecureStore { @Override public SecureStoreData get(String namespace, String name) throws Exception { HttpRequest request = remoteClient.requestBuilder(HttpMethod.GET, createPath(namespace, name) + "/metadata").build(); HttpResponse response = remoteClient.execute(request); handleResponse(response, namespace, name, String.format("Error occurred while getting metadata for key %s:%s", namespace, name)); SecureStoreMetadata metadata = GSON.fromJson(response.getResponseBodyAsString(), SecureStoreMetadata.class); request = remoteClient.requestBuilder(HttpMethod.GET, createPath(namespace, name)).build(); response = remoteClient.execute(request); handleResponse(response, namespace, name, String.format("Error occurred while getting key %s:%s", namespace, name)); byte[] data = response.getResponseBody(); return new SecureStoreData(metadata, data); } @VisibleForTesting @Inject  RemoteSecureStore(DiscoveryServiceClient discoveryServiceClient); @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 { remoteSecureStore.get(NAMESPACE1, "nonexistingkey"); }