private void expectBlobStorageException(TestUtils.ThrowingRunnable runnable) throws Exception {
    try {
      runnable.run();
      fail("Expected BlobStorageException");
    } catch (Exception e) {
      e = Utils.extractFutureExceptionCause(e);
      if (e instanceof BlobStorageException) {

      } else {
        throw e;
      }
    }
  }
Utility method to run some code and verify the expected exception was thrown.
@param runnable the code to run.
ambry-cloud/src/test/java/com/github/ambry/cloud/azure/AzureBlobDataAccessorTest.java