String scmUrl = "file://localhost/tmp/scm-repo/trunk";
SvnScmProviderRepository scmProviderRepository = new SvnScmProviderRepository( scmUrl );
ScmRepository repository = new ScmRepository( "svn", scmProviderRepository );
Constraint[] arguments = new Constraint[]{new IsEqual( repository ), new IsScmFileSetEquals( fileSet ),
new IsEqual( "release-label" ),
new IsScmTagParamtersEquals( new ScmTagParameters( "[my prefix] copy for tag release-label" ) )};
scmProviderMock
.expects( new InvokeOnceMatcher() )
.method( "tag" )
.with( arguments )
.will( new ReturnStub( new TagScmResult( "...", Collections.singletonList( new ScmFile( getPath (rootProject