SvnScmProviderRepository scmProviderRepository = new SvnScmProviderRepository( sourceUrl );
scmProviderRepository.setBranchBase( "http://svn.example.com/repos/project/branches/" );
ScmRepository repository = new ScmRepository( "svn", scmProviderRepository );
ScmProvider scmProviderMock = mock( ScmProvider.class );
when( scmProviderMock.branch( eq( repository ),
argThat(new IsScmFileSetEquals( fileSet ) ),
eq( "release-label" ),
argThat(new IsScmBranchParametersEquals( new ScmBranchParameters( "[my prefix] copy for branch release-label" ) ) ) ) ).
thenReturn( new BranchScmResult( "...", Collections.singletonList( new ScmFile( getPath (rootProject
.getFile() ), ScmFileStatus.TAGGED ) ) ) ) ;