ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
releaseDescriptor.setInteractive( false );
releaseDescriptor.addDevelopmentVersion( "groupId:artifactId", "2-SNAPSHOT" );
// execute
phase.execute( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );
// verify
assertEquals( "Check mapped versions", Collections.singletonMap( "groupId:artifactId", "2-SNAPSHOT" ),
releaseDescriptor.getDevelopmentVersions() );
// prepare
releaseDescriptor = new ReleaseDescriptor();
releaseDescriptor.setInteractive( false );
releaseDescriptor.addDevelopmentVersion( "groupId:artifactId", "2-SNAPSHOT" );
// execute
phase.simulate( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );
// verify
assertEquals( "Check mapped versions", Collections.singletonMap( "groupId:artifactId", "2-SNAPSHOT" ),
releaseDescriptor.getDevelopmentVersions() );
}