validate
Validates a given condition and throws a ToolException.ValidationFailure exception if the condition is not met.
Parameters
expectation
The condition that is expected to be true.
message
A lambda function to generate the exception message if the condition is not met.