/** * Evaluate the specified expression and ensure the expected message comes out. * The message may have inserts and they will be checked if otherProperties is specified. * The first entry in otherProperties should always be the position. * @param expression the expression to evaluate * @param expectedMessage the expected message * @param otherProperties the expected inserts within the message */ protected void evaluateAndCheckError(String expression, SpelMessage expectedMessage, Object... otherProperties) { evaluateAndCheckError(expression, null, expectedMessage, otherProperties); }