private void verifyFailureWithMsg(String msg) throws Exception {
    RestRequest restRequest = new MockRestRequest(MockRestRequest.DUMMY_DATA, null);
    restRequest.setArg(RestUtils.Headers.BLOB_ID, blobId);
    restRequest.setArg(RestUtils.Headers.SERVICE_ID, SERVICE_ID);
    try {
      sendRequestGetResponse(restRequest, new MockRestResponseChannel());
      fail("Request should have failed");
    } catch (Exception e) {
      if (!msg.equals(e.getMessage())) {
        throw e;
      }
    }
  }
Verifies that attempting to undelete fails with the provided {@code msg}.
@param msg the message in the {@link Exception} that will be thrown.
@throws Exception
ambry-frontend/src/test/java/com/github/ambry/frontend/UndeleteHandlerTest.java