{
setUploadParameters( "1.0", null, new File( FileUtil.getBasedir(),
"target/test-classes/upload-artifact-test/artifact-to-be-uploaded.jar" ),
null, true );
ManagedRepositoryContent content = new ManagedDefaultRepositoryContent();
ManagedRepository repoConfig = getManagedRepository();
repoConfig.setBlockRedeployments( false );
content.setRepository( repoConfig );
repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content, 1, 8 );
managedRepoAdminControl.expectAndReturn( managedRepositoryAdmin.getManagedRepository( REPOSITORY_ID ),
repoConfig, 1, 8 );