File f = TestData.copy(this,path);
TestData.copy(this,"xml/geoserver/roadSchema.xsd");
TestData.copy(this,"xml/wfs/WFS-basic.xsd");
GMLFeatureCollection doc = (GMLFeatureCollection)DocumentFactory.getInstance(f.toURI(),null,Level.WARNING);
assertNotNull("Document missing", doc);
Schema s = SchemaFactory.getInstance(new URI("http://www.openplans.org/topp"));
path = "oneFeature_out_hints.xml";
f = new File(f.getParentFile(),path);
if(f.exists())
f.delete();
f.createNewFile();
HashMap hints = new HashMap();
hints.put(DocumentWriter.SCHEMA_ORDER,new String[] {"http://www.opengis.net/wfs", "http://www.openplans.org/topp"});
assertNotNull("Bounds exists",doc.getBounds());
DocumentWriter.writeDocument(doc,s,f,hints);
// doc = (GMLFeatureCollection)DocumentFactory.getInstance(f.toURI(),null,Level.WARNING);
// assertNotNull("New Document missing", doc);
//