expectCommandIterator
Sets expectations on a command iterator created from the command stream.
This method creates a CommandIterator from the command stream's iterator and applies the provided expectations to it.
Return
The expecter instance for method chaining.
Parameters
expected
A lambda function that configures expectations on the CommandIterator.