public void testCompileWithNewInsideMethodCall() {
    String expr = "     p.name = \"goober\";\n" + "     System.out.println(p.name);\n"
        + "     drools.insert(new Address(\"Latona\"));\n";

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

    context.addImport("Person",
        Person.class);
    context.addImport("Address",
        Address.class);

    context.addInput("p",
        Person.class);
    context.addInput("drools",
        Drools.class);

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