.getLogger(SimpleSqlExpressionTest.class);
public void testSqlExpressionBuilder() throws ExpressionEvaluationException {
// build expression
Expression expr = new AndExpression().add(
new ComparedEqualsExpression(new VariableExpression("name"),
new ValueExpression("James Bond"), ComparatorFactory
.getStringComparator(false, true, null))).add(
new GreaterThanExpression(new VariableExpression("age"),
new ValueExpression(new Long(25)))).add(
new EqualsExpression(new VariableExpression("licenseToKill"),
new ValueExpression(Boolean.TRUE)));
// evaluate expression in memory
Object value = expr.evaluate(new VariableResolver() {
public Object resolve(Variable variable) {