@Test
  public void isKeyDeletedTest() throws StoreException {
    for (MockId id : allKeys.keySet()) {
      assertEquals("Returned state is not as expected", deletedKeys.contains(id), store.isKeyDeleted(id));
    }
    for (MockId id : deletedAndShouldBeCompactedKeys) {
      assertTrue("Returned state is not as expected", store.isKeyDeleted(id));
    }
    // non existent id
    try {
      store.isKeyDeleted(getUniqueId());
      fail("Getting the deleted state of a non existent key should have failed");
    } catch (StoreException e) {
      assertEquals("Unexpected StoreErrorCode", StoreErrorCodes.IDNotFound, e.getErrorCode());
    }
  }
Tests {@link BlobStore#isKeyDeleted(StoreKey)} including error cases.
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java