*/
public class WebDavRetrieverTest {
@Test
public void testCalculateBaseURL() throws Exception {
List<DavResource> resources = new ArrayList<DavResource>(2);
final DavResource baseResource = Mockito.mock(DavResource.class);
Mockito.when(baseResource.getPath()).thenReturn("/webdav/");
final DavResource otherResource = Mockito.mock(DavResource.class);
Mockito.when(otherResource.getPath()).thenReturn("/webdav/metadata.xml");
resources.add(baseResource);
resources.add(otherResource);
final String baseURL = WebDavRetriever.calculateBaseURL("http://geonetwork.net/webdav/", resources);