@Test
  public void findMissingKeysTest() throws StoreException {
    List<StoreKey> idsToProvide = new ArrayList<StoreKey>(allKeys.keySet());
    Set<StoreKey> nonExistentIds = new HashSet<>();
    for (int i = 0; i < 10; i++) {
      nonExistentIds.add(getUniqueId());
    }
    idsToProvide.addAll(nonExistentIds);
    Collections.shuffle(idsToProvide);
    Set<StoreKey> missingKeys = store.findMissingKeys(idsToProvide);
    assertEquals("Set of missing keys not as expected", nonExistentIds, missingKeys);

    // Extra Test: findMissingKeys method can correctly capture store exception and shut down store if needed.
    store.shutdown();
    catchStoreExceptionAndVerifyErrorCode((blobStore) -> blobStore.findMissingKeys(idsToProvide));
    reloadStore();
  }
Tests {@link BlobStore#findMissingKeys(List)}.
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java