new ArchivaDavLocatorFactory() );
ManagedRepositoryContent internalRepo = createManagedRepositoryContent( INTERNAL_REPO );
// use actual object (this performs the isMetadata, isDefault and isSupportFile check!)
RepositoryRequest repoRequest = (RepositoryRequest) lookup( RepositoryRequest.class );
resourceFactory.setRepositoryRequest( repoRequest );
try
{
archivaConfigurationControl.expectAndReturn( archivaConfiguration.getConfiguration(), config );