FileInputStream fis = new FileInputStream( basedir + SOURCE_BASE + "forehead.conf" );
Forehead.getInstance().config( fis );
fis.close();
// setup maven session
MavenSession mavenSession = new MavenSession();
mavenSession.setRootContext( context );
File projectFile = new File( basedir + "/src/test/touchstone-build/project.xml" );
// set the project being run
MavenSession.setRootDescriptorFile( projectFile );
project = MavenUtils.getProject( projectFile, context );
// This seems like a glitch in the context assembly that doesn't affect the real world, so work around it
project.getContext().setMavenRepoLocal( fakeHomeLocal + "/repository" );
assertNotNull( project );
pluginManager = mavenSession.getPluginManager();
}