Sometimes you want to compare that the exception message is what you expect.
I currently use a combo of assertThrows like this:
val exception = assertThrows {}
expectThat(exception.message!!).contains("somestring")
because expectThrows doesn't let me check the message..