final IElementType operationSign,
final Object rightConstantValue) {
final OgnlBinaryExpression binaryExpression = parse(expression);
assertNotNull(binaryExpression);
final OgnlExpression leftOperand = binaryExpression.getLeft();
assertNotNull(leftOperand);
if (leftOperand instanceof OgnlLiteralExpression) {
assertEquals(leftConstantValue, ((OgnlLiteralExpression)leftOperand).getConstantValue());
}
assertEquals(operationSign, binaryExpression.getOperator());
final OgnlExpression rightOperand = binaryExpression.getRight();
assertNotNull(rightOperand);
if (rightOperand instanceof OgnlLiteralExpression) {
assertEquals(rightConstantValue, ((OgnlLiteralExpression)rightOperand).getConstantValue());
}
}