}
public void testDeepTreeInsert01() throws Exception {
initStructure();
ElementSpec[] specs = {
new ElementSpec(null, ElementSpec.EndTagType), // 0
new ElementSpec(null, ElementSpec.EndTagType), // 1
new ElementSpec(null, ElementSpec.StartTagType), // 2
new ElementSpec(null, ElementSpec.StartTagType), // 3
new ElementSpec(null, ElementSpec.ContentType, // 4
"\n".toCharArray(), 0, 1),
new ElementSpec(null, ElementSpec.EndTagType), // 5
new ElementSpec(null, ElementSpec.StartTagType), // 6
};
specs[2].setDirection(ElementSpec.JoinNextDirection);
specs[6].setDirection(ElementSpec.JoinNextDirection);
doc.insert(1, specs);
final Element html = doc.getDefaultRootElement();