void () { myBuilder = createBuilder("foo\n\nx"); final PsiBuilder.Marker marker = myBuilder.mark(); while (!myBuilder.eof()) { myBuilder.advanceLexer(); } marker.done(JavaParserDefinition.JAVA_FILE); assertEquals("foo\n\nx", myBuilder.getTreeBuilt().getText()); }