expectCommand
Creates a dynamic test for expectations on the first command.
Return
This DSL instance for method chaining.
Parameters
C
The type of the command body.
expected
A lambda function defining expectations on the first CommandMessage.