public void testSimple() {
final OgnlConditionalExpression expression = parse("true ? 0:1");
final OgnlExpression condition = expression.getCondition();
assertEquals("true", condition.getText());
assertElementType(OgnlElementTypes.BOOLEAN_LITERAL, condition);
<BUG>final OgnlExpression thenExpression = (OgnlExpression) expression.getThen();
assertEquals(0, thenExpression.getConstantValue());</BUG>
assertElementType(OgnlElementTypes.INTEGER_LITERAL, thenExpression);
<BUG>final OgnlExpression elseExpression = (OgnlExpression) expression.getElse();
assertEquals(1, elseExpression.getConstantValue());</BUG>
assertElementType(OgnlElementTypes.INTEGER_LITERAL, elseExpression);

public void testSimple() {
final OgnlConditionalExpression expression = parse("true ? 0:1");
final OgnlExpression condition = expression.getCondition();
assertEquals("true", condition.getText());
assertElementType(OgnlElementTypes.BOOLEAN_LITERAL, condition);
final OgnlExpression thenExpression = expression.getThen();
assertEquals(0, thenExpression.getConstantValue());
assertElementType(OgnlElementTypes.INTEGER_LITERAL, thenExpression);
final OgnlExpression elseExpression = expression.getElse();
assertEquals(1, elseExpression.getConstantValue());
assertElementType(OgnlElementTypes.INTEGER_LITERAL, elseExpression);
