In Java, the programmer can specify expected exceptions for JUnit test cases like this:
@Test(expected = ArithmeticException.class)
public void omg()
{
int bl
/**
* Example usage:
* ```kotlin
* val exception = assertThrows("Should throw an Exception") {
* throw IllegalArgumentException("Talk to a duck")
* }
* assertEquals("Talk to a duck", exception.message)
* ```
* @see Assertions.assertThrows
*/
inline fun assertThrows(message: String, noinline executable: () -> Unit): T =
assertThrows({ message }, executable)