@Test
public void testWMSCapabilitiesOperationsMetadata()
                        throws XMLStreamException {

    WMSCapabilitiesAdapter capabilities = createCapabilities();
    OperationsMetadata operationsMetadata = capabilities.parseOperationsMetadata();
    List<Operation> operations = operationsMetadata.getOperation();
    assertEquals( 4, operations.size() );
    Operation getMapOperation = operationsMetadata.getOperation( "GetMap" );
    List<URL> getUrls = getMapOperation.getGetUrls();
    assertEquals( 1, getUrls.size() );
    assertEquals( getGetGetMapUrl(), getUrls.get( 0 ).toExternalForm() );
    List<URL> postUrls = getMapOperation.getPostUrls();
    assertEquals( 1, postUrls.size() );
    assertEquals( getPostGetMapUrl(), postUrls.get( 0 ).toExternalForm() );
    List<DCP> dcps = getMapOperation.getDCPs();
    assertEquals( 1, dcps.size() );
    DCP dcp = dcps.get( 0 );
    List<Pair<URL, List<Domain>>> getEndpoints = dcp.getGetEndpoints();
    assertEquals( 1, getEndpoints.size() );
    assertEquals( getGetGetMapUrl(), getEndpoints.get( 0 ).getFirst().toExternalForm() );
    List<Pair<URL, List<Domain>>> postEndpoints = dcp.getPostEndpoints();
    assertEquals( 1, postEndpoints.size() );
    assertEquals( getPostGetMapUrl(), postEndpoints.get( 0 ).getFirst().toExternalForm() );
}