List<MavenProject> projects = createReactorProjects("release-projects", projectName);
File projectRoot = projects.get(0).getBasedir();
MavenSession session = new MavenSession(getContainer(), new Settings(), localRepository, null, null, null, projectRoot.getAbsolutePath(), new Properties(), new Properties(), null);
TestFinishExtension extension = new TestFinishExtension();
ReleaseContext ctx = new ReleaseContext(projectRoot);
ctx.setInteractive(false)
.setNoTag(true)
.setAllowSnapshots(true)
.setNoBuild(true)
.setReleaseFinishExtension(extension);
setupProjectsForMasterAndDevelop(projectRoot,projectName);
FlowReleaseManager relman = getReleaseManager();
relman.start(ctx, projects, session);
relman.finish(ctx, projects, session);
assertEquals("old version incorrect", "1.0", extension.getOldVersion());
assertEquals("new version incorrect", "1.1", extension.getNewVersion());
}