@Test
public void testGetAllDatasetMetadataByName()
                        throws Exception {

    DefaultOWSMetadataProvider metadataProvider = createProvider();
    List<DatasetMetadata> datasetMetadata = metadataProvider.getAllDatasetMetadata( new QName( "name1" ) );
    assertThat( datasetMetadata.size(), is( 2 ) );
}