// Spot check a few things ...
assertEquals(t0.getName(), "html");
checkLine(t0, 1);
TextToken t1 = get(tokens, 1);
// Concerned this may not work cross platform.
assertEquals(t1.getText(), "\n ");
StartElementToken t2 = get(tokens, 2);
assertEquals(t2.getName(), "head");
checkLine(t2, 2);
TextToken t5 = get(tokens, 5);
assertEquals(t5.getText(), "title");
checkLine(t5, 3);
get(tokens, 6);
StartElementToken t12 = get(tokens, 12);
assertEquals(t12.getName(), "p");
AttributeToken t13 = get(tokens, 13);
assertEquals(t13.getName(), "class");
assertEquals(t13.getValue(), "important");
TextToken t14 = get(tokens, 14);
// Simplify the text, converting consecutive whitespace to just a single space.
assertEquals(t14.getText().replaceAll("\\s+", " ").trim(), "Tapestry rocks! Line 2");
// Line number is the *start* line of the whole text block.
checkLine(t14, 6);
}