context.put("a1","test");
context.put("b1","test");
Writer writer = new StringWriter();
ve.evaluate(context,writer,"test","$a1 $c1 $a1.length() $a1.foobar()");
List errors = reporter.getInvalidReferences();
assertEquals(2,errors.size());
assertEquals("$c1",((InvalidReferenceInfo) errors.get(0)).getInvalidReference());
assertEquals("$a1.foobar()",((InvalidReferenceInfo) errors.get(1)).getInvalidReference());