}
private void testJsonMLToAstConversion(Node astRoot, JsonML jsonmlRoot,
String js) {
Compiler compiler = new Compiler();
JsonMLAst ast = new JsonMLAst(jsonmlRoot);
Node resultAstRoot = ast.getAstRoot(compiler);
String explanation = resultAstRoot.checkTreeEquals(astRoot);
assertNull("JsonML -> AST converter returned incorect result for " + js
+ "\n" + explanation, explanation);
}