@Test
public void testGetScanArtifactFile() throws Exception {

    final File testOutDir = new File(testOutBaseDir, "testGetScanArtifactFile");
    FileUtils.deleteDirectory(testOutDir);
    testOutDir.mkdirs();
    final File artifactFile = new File(testOutDir, "test-artifact.zip");
    FileUtils.touch(artifactFile);
    final MavenProject project = mock(MavenProject.class);
    ScanArtifactMojo mojo = newMojo();
    mojo.project = project;
    final Artifact artifact = mock(Artifact.class);
    when(project.getArtifact()).thenReturn(artifact);
    when(artifact.getFile()).thenReturn(artifactFile);
    assertSame("expect same artifact", artifactFile, mojo.getScanArtifactFile());
}