### Question:
ResourceLocator { public Location findResource(String pathref) throws MojoExecutionException { if (StringUtils.isBlank(pathref)) { log.warn("Unable to lookup resource for null pathref: " + pathref); return null; } Location location = null; location = lookInProject(pathref); if (location != null) { return location; } location = lookInOutputDirectory(pathref); if (location != null) { return location; } location = lookInProjectCompileArtifacts(pathref); if (location != null) { return location; } location = lookInClasspath(pathref); if (location != null) { return location; } log.debug("NOT FOUND: resource: " + pathref); return null; } ResourceLocator(Log log, MavenProject project); Location findResource(String pathref);  }### Answer:
@Test public void testFindClasspathResource() throws Exception { Log log = new DebugEnabledLog(); MavenProject project = new SelfProjectStub(); ResourceLocator locator = new ResourceLocator(log, project); Location location = locator.findResource("META-INF/maven/org.apache.maven/maven-project/pom.properties"); Assert.assertThat("location", location, notNullValue()); Assert.assertThat("location.isLocalToProject", location.isLocalToProject(), is(false)); Assert.assertThat("location.isLocalLiveFile", location.isLiveFile(), is(false)); String expected = "maven-project-2.0.10.jar!/META-INF/maven/org.apache.maven/maven-project/pom.properties"; Assert.assertThat("location.uri", location.getUri().toASCIIString(), containsString(expected)); }