@Test
public void testWriteSoapWmsExtendedCapabilites_NotContainsGetMap()
                        throws Exception {

    Wms130SoapExtendedCapabilitesWriter writer = new Wms130SoapExtendedCapabilitesWriter();
    ByteArrayOutputStream stream = new ByteArrayOutputStream();
    XMLStreamWriter streamWriter = XMLOutputFactory.newInstance().createXMLStreamWriter( stream );
    String postUrl = "http://post.url/soap";
    SupportedEncodings supportedEncodings = mockSupportedEncodingsNoGetMap();
    writer.writeSoapWmsExtendedCapabilites( streamWriter, postUrl, supportedEncodings );
    streamWriter.close();
    assertThat( xml( stream.toString() ),
                hasXPath( "//soapwms:ExtendedCapabilities/soapwms:SOAP/soapwms:SupportedOperations/soapwms:Operation[@name = 'GetCapabilities']",
                          nsBindings() ) );
    assertThat( xml( stream.toString() ),
                hasXPath( "//soapwms:ExtendedCapabilities/soapwms:SOAP/soapwms:SupportedOperations/soapwms:Operation[@name = 'GetFeatureInfo']",
                          nsBindings() ) );
    assertThat( xml( stream.toString() ),
                not( hasXPath( "//soapwms:ExtendedCapabilities/soapwms:SOAP/soapwms:SupportedOperations/soapwms:Operation[@name = 'GetMap']",
                               nsBindings() ) ) );
}