"target/test-classes/upload-artifact-test/artifact-to-be-uploaded.jar" ), null,
false );
archivaConfigControl.expectAndReturn( archivaConfig.getConfiguration(), config );
repoFactoryControl.expectAndThrow( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ),
new RepositoryNotFoundException() );
archivaConfigControl.replay();
repoFactoryControl.replay();
String returnString = uploadAction.doUpload();