@Test
public void ignoresRuntimeScope() throws Exception {

    final ProjectDependencyAnalysis analysis =
        Mockito.mock(ProjectDependencyAnalysis.class);
    final Artifact artifact = Mockito.mock(Artifact.class);
    final Set<Artifact> unused = new HashSet<>();
    unused.add(artifact);
    Mockito.doReturn(unused).when(analysis).getUnusedDeclaredArtifacts();
    Mockito.doReturn(Artifact.SCOPE_RUNTIME).when(artifact).getScope();
    final ProjectDependencyAnalyzer analyzer = this.analyzer(analysis);
    final MavenEnvironment env = new MavenEnvironmentMocker().inPlexus(
        DependenciesValidatorTest.ROLE,
        DependenciesValidatorTest.HINT,
        analyzer
    ).mock();
    new DependenciesValidator().validate(env);
}