use

abstract suspend fun <T> use(block: suspend BatchRequestExpectation.() -> T): T

Activate all expectations for the duration of block. Expectations are enabled concurrently by nesting RequestExpectation.use calls, so all handlers are active while block executes.