}
public void testNodeContent() throws Exception
{
Document d = createDocument();
SDLDocumentAdaptor adaptor = new SDLDocumentAdaptor(d);
AttributesImpl a = new AttributesImpl();
adaptor.startElement(null, "module", null, a);
adaptor.characters("text".toCharArray(), 0, 4);
a = new AttributesImpl();
adaptor.startElement(null, "fred", null, a);
adaptor.endElement(null, "fred", null);
adaptor.endElement(null, "module", null);
Element e = d.getDocumentElement();
assertEquals("module", e.getTagName());
CDATASection cd = (CDATASection) e.getFirstChild();