String sourceUrl = "file://localhost/tmp/scm-repo/trunk/root-project";
String scmUrl = "scm:svn:" + sourceUrl;
descriptor.setScmSourceUrl( scmUrl );
ScmProvider scmProviderMock = mock( ScmProvider.class );
SvnScmProviderRepository scmProviderRepository = new SvnScmProviderRepository( sourceUrl );
ScmRepository repository = new ScmRepository( "svn", scmProviderRepository );
when( scmProviderMock.checkOut( eq( repository ),
argThat( new IsScmFileSetEquals( new ScmFileSet( checkoutDirectory ) ) ),
argThat( new IsScmTagEquals( new ScmTag( "release-label" ) ) ) ) ).thenReturn( new CheckOutScmResult( "", null ) );