inline fun <reified T : Throwable> expectException(clazz: KClass<T>, block: () -> Unit): Unit
Expect block to throw an exception. Otherwise fail the test (junit).