public void testStaticNestedWithImport() {
    String expr = "Message.GOODBYE;\n";

    ParserContext context = new ParserContext();
    context.setStrictTypeEnforcement(false);

    context.addImport("Message",
        Message.class);

    ExpressionCompiler compiler = new ExpressionCompiler(expr, context);
    assertEquals(1,
        executeExpression(compiler.compile()));
  }