releaseDescriptor.addReleaseVersion( "groupId:artifactId", "2.0" );
phase.setPrompter( mockPrompter );
// execute
phase.execute( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );
// verify
assertEquals( "Check mapped versions", Collections.singletonMap( "groupId:artifactId", "2.0" ),
releaseDescriptor.getReleaseVersions() );
// prepare
releaseDescriptor = new ReleaseDescriptor();
releaseDescriptor.addReleaseVersion( "groupId:artifactId", "2.0" );
// execute
phase.simulate( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );
// verify
assertEquals( "Check mapped versions", Collections.singletonMap( "groupId:artifactId", "2.0" ),
releaseDescriptor.getReleaseVersions() );
}