ExpressionEvaluatorImpl implements ExpressionEvaluator { @Override public <T extends Comparable<? super T>> T evaluateAs(Object expression, DataRow dataRow, Class<T> cls) { Object result = evaluate(expression, dataRow); return result != null ? cast(result, result.getClass(), cls): null; }  @Override Map<String, Set<String>> getColumnNames(Object expression); @Override T evaluate(Object expression, DataRow dataRow); @Override T evaluateAs(Object expression, DataRow dataRow, Class<T> cls);  }
@Test public void testEvaluateNull() { assertThat(expressionEvaluator.evaluateAs(new Null(), EMPTY_ROW, Integer.class), is(nullValue())); }