{
File pom = getProject( "mojo-configuration" );
MavenSession session = createMavenSession( pom );
LifecycleTask task = new LifecycleTask( "generate-sources" );
MavenExecutionPlan executionPlan =
lifeCycleExecutionPlanCalculator.calculateExecutionPlan( session, session.getCurrentProject(),
Arrays.asList( (Object) task ), false );
MojoExecution execution = executionPlan.getMojoExecutions().get(0);