expectEvents

fun expectEvents(vararg events: Any)

The command committed exactly events, in order; a mismatch lists each difference by its path.