throws Exception {
Statement parseTree = js(fromResource(testFile));
checkFilePositionInvariants(parseTree);
StringBuilder sb = new StringBuilder();
TokenConsumer tc = new JsPrettyPrinter(sb);
RenderContext rc = new RenderContext(tc);
parseTree.render(rc);
tc.noMoreTokens();
sb.append('\n');
String golden = TestUtil.readResource(getClass(), goldenFile);
String actual = sb.toString();
assertEquals(actual, golden, actual);