inline fun <reified E : Throwable> expectThrows(noinline action: suspend () -> Any?): Builder<E>
Asserts that actionthrows an exception of type E when executed.
Return
an assertion over the thrown exception, allowing further assertions
about messages, root causes, etc.