expectErrorType
Defines expectation for the type of error that occurred.
This method verifies that the exception thrown during command processing is of the specified type.
Return
this ExpectDsl instance for method chaining
Parameters
E
the expected exception type
expected
the class of the expected exception