ObjectAnalyzer<DefaultArtifactRepositoryFactory> artifactRepositoryFactoryAnalyzer = new ObjectAnalyzer<DefaultArtifactRepositoryFactory>(
artifactRepositoryFactory);
// artifactRepositoryFactoryAnalyzer.setPrivateField("repositoryLayouts",
// new HashMap());
DefaultMavenTools mavenTools = new DefaultMavenTools();
ObjectAnalyzer<DefaultMavenTools> mavenToolsAnalyzer = new ObjectAnalyzer<DefaultMavenTools>(
mavenTools);
mavenToolsAnalyzer.setPrivateField("artifactRepositoryFactory",
artifactRepositoryFactory);