### Question:
MavenDependencyResolver implements DependencyResolver { @Override public Map.Entry<IArtifactMetadata, Path> getProjectDependency(String groupId, String artifactId, String classifier, ResolutionScope scope) { Dependency dependency = new Dependency(groupId, artifactId, classifier); return resolveDependencies(scope, true).entrySet().stream() .filter(a -> matchesArtifact(dependency, a.getKey())) .findFirst().get(); } MavenDependencyResolver(MavenProject project, RepositorySystemSession repoSession,
      RepositorySystem repositorySystem, ScopedProjectDependencyCache dependencyCache); @Override Map.Entry<IArtifactMetadata, Path> getProjectDependency(String groupId, String artifactId,
      String classifier, ResolutionScope scope); @Override Map<IArtifactMetadata, Path> getProjectDependencies(boolean transitive,
      ResolutionScope scope);  }### Answer:
@Test(expected = NoSuchElementException.class) public void testResourceNotFound() throws Exception { setup("transitive"); resolver.getProjectDependency("g", "a", "c", ResolutionScope.COMPILE); }