expectError

open fun expectError(): SE
open fun <E : Throwable> expectError(expected: E.() -> Unit): SE