super.setUp();
StyleContextTest.sc = StyleContext.getDefaultStyleContext();
as = new AttributeSet[] { StyleContextTest.addAttribute(1),
StyleContextTest.addAttribute(null, 2, 2),
StyleContextTest.addAttribute(null, 5, 2) };
doc = new DisAbstractedDocument(new GapContent());
doc.insertString(0, "0123456789", as[0]);
doc.writeLock();
BranchElement branch = doc.new BranchElement(null, as[1]);
leaf1 = doc.new LeafElement(null, as[2], 0, 3);
leaf2 = doc.new LeafElement(branch, as[2], 5, 8);