expectException

suspend fun <T : Throwable> expectException(clazz: KClass<T>, callback: suspend () -> Unit)
inline suspend fun <T : Throwable> expectException(noinline callback: suspend () -> Unit)