Fix a code standard issue in the UnexpectedValueException, change the testing strategy to avoid the use of the @ operator.