= "GetRootTest.entry.key.svg.arg.output";
public TestReport runImpl() throws Exception {
// First, use the no-argument getRoot
DOMImplementation impl = GenericDOMImplementation.getDOMImplementation();
String namespaceURI = SVGConstants.SVG_NAMESPACE_URI;
Document domFactory = impl.createDocument(namespaceURI, SVG_SVG_TAG, null);
SVGGeneratorContext ctx = SVGGeneratorContext.createDefault(domFactory);
GraphicContextDefaults defaults
= new GraphicContextDefaults();
defaults.font = new Font("Arial", Font.PLAIN, 12);
ctx.setGraphicContextDefaults(defaults);
SVGGraphics2D g2d = new SVGGraphics2D(ctx, false);
g2d.setSVGCanvasSize(CANVAS_SIZE);
Painter painter = new BasicShapes();
painter.paint(g2d);
StringWriter swA = new StringWriter();
g2d.stream(g2d.getRoot(), swA);
// Now, use the getRoot with argument
domFactory = impl.createDocument(namespaceURI, SVG_SVG_TAG, null);
ctx = SVGGeneratorContext.createDefault(domFactory);
ctx.setGraphicContextDefaults(defaults);
g2d = new SVGGraphics2D(ctx, false);
g2d.setSVGCanvasSize(CANVAS_SIZE);