@Test
public void testMerge() {

    DatasetMetadataMerger datasetMetadataMerger = new DatasetMetadataMerger();
    DatasetMetadata providerMetadata = createDatasetMetadata( URL_1 );
    DatasetMetadata layerMetadata = createDatasetMetadata( URL_2, URL_3 );
    DatasetMetadata mergedMetadata = datasetMetadataMerger.merge( providerMetadata, layerMetadata );
    List<MetadataUrl> metadataUrls = mergedMetadata.getMetadataUrls();
    assertThat( metadataUrls.size(), is( 3 ) );
}