void () { myBuilder = createBuilder(""); final PsiBuilder.Marker fileMarker = myBuilder.mark(); fileMarker.done(JavaParserDefinition.JAVA_FILE); ASTNode fileNode = myBuilder.getTreeBuilt(); assertNotNull(fileNode); assertEquals("", fileNode.getText()); }