descriptor.setScmCommentPrefix( "[my prefix] " );
ScmFileSet fileSet = new ScmFileSet( rootProject.getFile().getParentFile() );
ScmProvider scmProviderMock = mock( ScmProvider.class );
when( scmProviderMock.branch( isA( ScmRepository.class ),
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 ) ) ) );