Inject middleware to intercept outgoing messages to check their content
Sends message to bot and sets the expectations for the responses.
message to send to bot
expected responses
Sets the current response expectation function for the message service. This allows the botToUserMessageChecker property to be updated within a closure with the proper expectedResponses. The promise that is returned will only resolve when all responses have been seen. Many tests will hang here and fail if an expected response is never received
collection of expected responses for a particular step
Handles sending messages to bot, intercepts the responses, and compares the response to the expected responses for the particular test step