public static void assertThrows(String message,
                                  Class<? extends Exception> expected,
                                  Runnable runnable) {
    assertThrows(message, expected, null, runnable);
  }
A convenience method to avoid a large number of @Test(expected=...) tests
@param message A String message to describe this assertion
@param expected An Exception class that the Runnable should throw
@param runnable A Runnable that is expected to throw the runtime exception
iceberg/iceberg-catalog/src/test/java/org/apache/iceberg/AssertHelpers.java