@Test
public void testWriteSoapWmsExtendedCapabilites_ContainsPostUrl()
                        throws Exception {

    Wms130SoapExtendedCapabilitesWriter writer = new Wms130SoapExtendedCapabilitesWriter();
    ByteArrayOutputStream stream = new ByteArrayOutputStream();
    XMLStreamWriter streamWriter = XMLOutputFactory.newInstance().createXMLStreamWriter( stream );
    String postUrl = "http://post.url/soap";
    SupportedEncodings supportedEncodings = mockSupportedEncodings();
    writer.writeSoapWmsExtendedCapabilites( streamWriter, postUrl, supportedEncodings );
    streamWriter.close();
    assertThat( xml( stream.toString() ),
                hasXPath( "//soapwms:ExtendedCapabilities/soapwms:SOAP/wms:OnlineResource/@xlink:href",
                          nsBindings(), equalTo( postUrl ) ) );
}