}
public void testEncode() throws Exception {
Ows10Factory f = Ows10Factory.eINSTANCE;
GetCapabilitiesType caps = f.createGetCapabilitiesType();
AcceptVersionsType versions = f.createAcceptVersionsType();
caps.setAcceptVersions( versions );
versions.getVersion().add( "1.0.0" );
versions.getVersion().add( "1.1.0" );
ByteArrayOutputStream output = new ByteArrayOutputStream();
response.write( caps, output, null );
Document d = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();