@Test
  public void batchDeleteErrorCasesTest() throws StoreException {
    // IDs which are already deleted
    Iterator<MockId> deletedKeysIterator = deletedKeys.iterator();
    List<MockId> idsAlreadyDeleted = new ArrayList<>(Arrays.asList(deletedKeysIterator.next(), deletedKeysIterator.next()));
    verifyBatchDeleteSameFailure(idsAlreadyDeleted, StoreErrorCodes.IDDeleted);

    // IDs that do not exist
    verifyBatchDeleteSameFailure(Arrays.asList(getUniqueId(), getUniqueId()), StoreErrorCodes.IDNotFound);

    // Duplicate ids in input should fail
    MockId id = getUniqueId();
    try{
      verifyBatchDeleteSameFailure(Arrays.asList(id, id), null);
    } catch(IllegalArgumentException e){
      // expected. Nothing to do.
    }
  }
Tests error cases for {@link BlobStore#batchDelete}.
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java