public static ParseTreeNode parse(String src) throws Exception {
MessageContext mc = new MessageContext();
MessageQueue mq = TestUtil.createTestMessageQueue(mc);
InputSource is = new InputSource(new URI("file:///no/input/source"));
CharProducer cp = CharProducer.Factory.create(new StringReader(src), is);
JsLexer lexer = new JsLexer(cp);
JsTokenQueue tq = new JsTokenQueue(lexer, is, JsTokenQueue.NO_COMMENT);
Parser p = new Parser(tq, mq);
Statement stmt = p.parse();
p.getTokenQueue().expectEmpty();
return stmt;