@Test
public void testResolvesCompileScopes() throws RepositoryException {

    ArtifactResolver resolver = getResolver(false, false);
    CollectionResult res = resolver.collectTransitiveDeps("used-scopes:root:0");
    assertTrue(res.getFailures().isEmpty());
    Set<Artifact> artifacts = res.getResolvedArtifacts();
    assertEquals(2, artifacts.size());
    assertEquals(1, artifacts.stream().map(Artifact::getArtifactId).filter("compile"::equals).count());
    assertEquals(1, artifacts.stream().map(Artifact::getArtifactId).filter("deep-compile-compile"::equals).count());
}