SimpleStringBag excluded = new SimpleStringBag();
assertEquals(1, htmlAttributes.searchAttributes("html", excluded, sampleAttribute).size());
excluded.add(sampleAttribute);
JsonArray<Token> tokens1 = JsonCollections.createArray();
tokens1.add(new Token(CodeMirror2.HTML, TokenType.TAG, "<html"));
tokens1.add(new Token(CodeMirror2.HTML, TokenType.WHITESPACE, " "));
String line1 = tokensToText(tokens1);
parsedLines.put(line1, tokens1);
JsonArray<Token> tokens2 = JsonCollections.createArray();
tokens2.add(new Token(CodeMirror2.HTML, TokenType.ATTRIBUTE, sampleAttribute));
String line2 = tokensToText(tokens2);
parsedLines.put(line2, tokens2);
JsonArray<Token> tokens3 = JsonCollections.createArray();
tokens3.add(new Token(CodeMirror2.HTML, TokenType.WHITESPACE, " "));
String line3 = tokensToText(tokens3);
parsedLines.put(line3, tokens3);
String text = line1 + "\n" + line2 + "\n ";
helper.setup(path, text, 0, line1.length(), false);