DefaultVmlDocument extends AbstractGraphicsDocument { public void writePathContent(Coordinate[] coords) throws RenderException { writePathContent(coords, 'm', 'r'); } DefaultVmlDocument(Writer writer); void writeClosedPathContent(Coordinate[] coords); void writePathContent(Coordinate[] coords);  }
@Test public void writePathContent() throws Exception { StringWriter writer = new StringWriter(); GraphicsDocument document = new DefaultVmlDocument(writer); document.writeElement("path", false); document.writeAttributeStart("points"); Coordinate[] coordinates = new Coordinate[2]; coordinates[0] = new Coordinate(1.23456789, 9.87654321); coordinates[1] = new Coordinate(9.876, 1.234); document.writePathContent(coordinates); document.writeAttributeEnd(); document.closeElement(); Assert.assertEquals("<path points=\"m1 10r9 -9 \"/>", writer.getBuffer().toString()); }