public void projectScannerPlugin() throws IOException {
MavenProjectMavenScannerPlugin scannerPlugin = new MavenProjectMavenScannerPlugin();
// Mock parent project
MavenProject parentProject = mock(MavenProject.class);
Artifact parentArtifact = new DefaultArtifact("group", "parent-artifact", VersionRange.createFromVersion("1.0.0"), null, "pom", "main", null);
when(parentProject.getArtifact()).thenReturn(parentArtifact);
when(parentProject.getPackaging()).thenReturn("pom");
// Mock project
MavenProject project = mock(MavenProject.class);
when(project.getName()).thenReturn("project");
Artifact artifact = new DefaultArtifact("group", "artifact", VersionRange.createFromVersion("1.0.0"), null, "jar", "main", null);
when(project.getArtifact()).thenReturn(artifact);
when(project.getPackaging()).thenReturn("jar");
File basedir = mock(File.class);
when(basedir.getAbsolutePath()).thenReturn("basedir");
when(project.getBasedir()).thenReturn(basedir);