new Constraint[]{new IsEqual( repository ), new IsScmFileSetEquals( new ScmFileSet( checkoutDirectory ) ),
new IsScmTagEquals( new ScmTag( "release-label" ) )};
scmProviderMock.expects( new InvokeOnceMatcher() ).method( "checkOut" ).with( arguments ).will(
new ReturnStub( new CheckOutScmResult( "", null ) ) );
ScmManagerStub stub = (ScmManagerStub) lookup( ScmManager.ROLE );
stub.setScmProvider( (ScmProvider) scmProviderMock.proxy() );
stub.addScmRepositoryForUrl( scmUrl, repository );
List<MavenProject> reactorProjects = createReactorProjects( "rewrite-for-release/pom-with-parent-flat", "/root-project" );
phase.execute( descriptor, new DefaultReleaseEnvironment(), reactorProjects );
assertEquals( "not found root-project but " + descriptor.getScmRelativePathProjectDirectory(), "root-project",