@Ignore("Requires access to referenced schema")
@Test
public void testWriteSoapWmsExtendedCapabilites_SchemaValid()
                        throws Exception {

    Wms130SoapExtendedCapabilitesWriter writer = new Wms130SoapExtendedCapabilitesWriter();
    ByteArrayOutputStream stream = new ByteArrayOutputStream();
    XMLStreamWriter streamWriter = XMLOutputFactory.newInstance().createXMLStreamWriter( stream );
    SupportedEncodings supportedEncodings = mockSupportedEncodings();
    writer.writeSoapWmsExtendedCapabilites( streamWriter, "http://post.url/soap", supportedEncodings );
    streamWriter.close();
    assertThat( xml( stream.toString() ), XmlMatchers.conformsTo( schema() ) );
}