KMLVectorTransformer transformer = new KMLVectorTransformer(getWMS(), mapContext,
mapLayer);
transformer.setIndentation(2);
document = WMSTestSupport.transform(featureSource.getFeatures(), transformer);
} finally {
mapContext.dispose();
}
Element element = document.getDocumentElement();
assertEquals("kml", element.getNodeName());
assertEquals(1, element.getElementsByTagName("Placemark").getLength());
assertEquals(1, element.getElementsByTagName("Style").getLength());