Source:
<code>public void shouldRemoveProjectInGroovyScript() throws Exception { final File groovy = TestUtils.resolveFileResource( "groovy-project-removal", "manipulation.groovy" ); final File base = TestUtils.resolveFileResource( "groovy-project-removal", "" ); final File root = tf.newFolder(); FileUtils.copyDirectory( base, root ); final File projectroot = new File ( root, "pom.xml"); final DefaultContainerConfiguration config = new DefaultContainerConfiguration(); config.setClassPathScanning( PlexusConstants.SCANNING_ON ); config.setComponentVisibility( PlexusConstants.GLOBAL_VISIBILITY ); config.setName( "PME-CLI" ); PlexusContainer container = new DefaultPlexusContainer( config ); PomIO pomIO = container.lookup( PomIO.class ); List<Project> projects = pomIO.parseProject( projectroot ); assertThat( projects.size(), equalTo( 3 ) ); Properties userProperties = new Properties(); userProperties.setProperty( "versionIncrementalSuffix", "rebuild" ); userProperties.setProperty( "groovyScripts", groovy.toURI().toString() ); TestUtils.SMContainer smc = TestUtils.createSessionAndManager( userProperties ); smc.getRequest().setPom( projectroot ); smc.getManager().scanAndApply( smc.getSession() ); projects = pomIO.parseProject( projectroot ); assertThat( projects.size(), equalTo( 3 ) ); <START> assertEquals( projectForArtifactId( projects, "groovy-project-removal").getModel().getProfiles().size(), 1 ); <END> assertThat( projectForArtifactId( projects, "groovy-project-removal" ).getVersion(), containsString( "rebuild" ) ); assertThat( projectForArtifactId( projects, "groovy-project-removal-moduleA" ).getVersion(), containsString( "rebuild" ) ); assertThat( projectForArtifactId( projects, "groovy-project-removal-moduleB" ).getVersion(), equalTo( "1.0.0" ) ); }</code><technical_language>Arguments reversed: expected, actual</technical_language>

Target:
public void shouldRemoveProjectInGroovyScript() throws Exception { final File groovy = TestUtils.resolveFileResource( "groovy-project-removal", "manipulation.groovy" ); final File base = TestUtils.resolveFileResource( "groovy-project-removal", "" ); final File root = tf.newFolder(); FileUtils.copyDirectory( base, root ); final File projectroot = new File ( root, "pom.xml"); final DefaultContainerConfiguration config = new DefaultContainerConfiguration(); config.setClassPathScanning( PlexusConstants.SCANNING_ON ); config.setComponentVisibility( PlexusConstants.GLOBAL_VISIBILITY ); config.setName( "PME-CLI" ); PlexusContainer container = new DefaultPlexusContainer( config ); PomIO pomIO = container.lookup( PomIO.class ); List<Project> projects = pomIO.parseProject( projectroot ); assertThat( projects.size(), equalTo( 3 ) ); Properties userProperties = new Properties(); userProperties.setProperty( "versionIncrementalSuffix", "rebuild" ); userProperties.setProperty( "groovyScripts", groovy.toURI().toString() ); TestUtils.SMContainer smc = TestUtils.createSessionAndManager( userProperties ); smc.getRequest().setPom( projectroot ); smc.getManager().scanAndApply( smc.getSession() ); projects = pomIO.parseProject( projectroot ); assertThat( projects.size(), equalTo( 3 ) ); assertEquals( 1, projectForArtifactId( projects, "groovy-project-removal").getModel().getProfiles().size() ); assertThat( projectForArtifactId( projects, "groovy-project-removal" ).getVersion(), containsString( "rebuild" ) ); assertThat( projectForArtifactId( projects, "groovy-project-removal-moduleA" ).getVersion(), containsString( "rebuild" ) ); assertThat( projectForArtifactId( projects, "groovy-project-removal-moduleB" ).getVersion(), equalTo( "1.0.0" ) ); }