public void testTypeRegression() {
    ParserContext ctx = new ParserContext();
    ctx.setStrictTypeEnforcement(true);
    ExpressionCompiler compiler = new ExpressionCompiler("total = 0", ctx);
    compiler.compile();
    assertEquals(Integer.class,
        compiler.getParserContextState().getVarOrInputType("total"));
  }