}
@Test
public void testConstructors() {
SVGText txt;
try {
txt = createSVGText(null, null);
fail();
}
catch(Exception e) { /* ok */ }
try {
txt = createSVGText(null, doc);
fail();
}
catch(Exception e) { /* ok */ }
txt = createSVGText("a", null); //$NON-NLS-1$
assertEquals("a", txt.getData()); //$NON-NLS-1$
assertNull(txt.getOwnerDocument());
txt = createSVGText("test", doc); //$NON-NLS-1$
assertEquals("test", txt.getData()); //$NON-NLS-1$
assertEquals(txt.getOwnerDocument(), doc);
}