document.setRootId("bla");
document.writeElement("g", true);
document.writeId("featureId");
Assert.assertEquals("bla.featureId", document.getCurrentId());
document.writeElement("g", true);
document.writeAttribute("style", "my-super-style:true;");
document.writeId("styleId");
Assert.assertEquals("bla.featureId.styleId", document.getCurrentId());
document.closeElement();
document.closeElement();
Assert.assertEquals("<g id=\"bla.featureId\"><g style=\"my-super-style:true;\" id=\"bla.featureId.styleId\"/></g>", writer.getBuffer().toString());