MavenProject project = readMavenProject( new File( "src/test/projects/explicit" ) );
MavenSession session = newMavenSession( project );
MojoExecution execution = newMojoExecution( "parameters" );
session.getUserProperties().put( "property", "propertyValue" );
ParametersMojo mojo = (ParametersMojo) lookupConfiguredMojo( session, execution );
assertEquals( "explicitValue", mojo.plain );
assertEquals( "explicitWithPropertyValue", mojo.withProperty );
assertEquals( "explicitWithDefaultValue", mojo.withDefault );
assertEquals( "explicitWithPropertyAndDefaultValue", mojo.withPropertyAndDefault );