private void verifyBatchDeleteSameFailure(List<MockId> idsToDelete, StoreErrorCodes expectedErrorCode)
      throws StoreException {
    List<MessageInfo> infosToDelete = new ArrayList<>();
    for (MockId id : idsToDelete) {
      infosToDelete.add(new MessageInfo(id, DELETE_RECORD_SIZE, id.getAccountId(), id.getContainerId(), time.milliseconds(),
          MessageInfo.LIFE_VERSION_FROM_FRONTEND));
    }
    StoreBatchDeleteInfo storeBatchDeleteInfo = store.batchDelete(infosToDelete);
    for (MessageErrorInfo messageErrorInfo: storeBatchDeleteInfo.getMessageErrorInfos()){
      assertEquals("Unexpected StoreErrorCode", expectedErrorCode, messageErrorInfo.getError());
    }
    assertEquals("Input output size mismatch", idsToDelete.size(), storeBatchDeleteInfo.getMessageErrorInfos().size());
  }
Verifies that BATCH_DELETE fails with same error for all blobs.
@param idsToDelete {@link List<MockId>} for BATCH_DELETE.
@param expectedErrorCode the expected {@link StoreErrorCodes} for the failure for all blobs
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java