public void testParserErrorHandling() {
    final ParserContext ctx = new ParserContext();
    ExpressionCompiler compiler = new ExpressionCompiler("a[", ctx);
    try {
      compiler.compile();
    }
    catch (Exception e) {
      return;
    }
    assertTrue(false);
  }