RootNode root = (RootNode) model.getRoot();
// There should be an UnrecognizedNode generated by the "bad"
// tag above.
assertEquals(1, root.getChildCount());
UnrecognizedNode child = (UnrecognizedNode) root.getChildAt(0);
assertTrue(child.isLeaf());
assertEquals("bad", child.getName());
assertTrue(child.getHtmlDocumentation().startsWith("<h2>Error</h2>"));
// Try to expand the child node. This should fail, since the internals of
// unrecognized nodes are not parsed.
tree.expandPath(new TreePath(child.getPath()));
assertTrue(child.isLeaf());
}