File pluginConfigFile = new File( getBasedir(), "src/test/plugin-configs/" + pluginConfigResource );
assertTrue( "Cannot find plugin-configuration: \'" + pluginConfigResource + "\' in context-classloader\'s classpath.", pluginConfigFile.exists() );
// TODO: Need to replace this with test-only mojos...
Mojo mojo = (Mojo) lookupMojo( mojoName, pluginConfigFile.getAbsolutePath() );
FileLoggingArchiverManagerStub archiverManager = (FileLoggingArchiverManagerStub) getVariableValueFromObject( mojo, "archiverManager" );
archiverManager.clearArchiver();
mojo.execute();
return mojo;
}