### Question:
Resolver { static String getSha1Url(String url, String extension) { return url.replaceAll(".pom$", "." + extension + ".sha1"); } Resolver(EventHandler handler, DefaultModelResolver resolver); static Artifact getArtifact(String atrifactCoords); static Artifact getArtifact(Dependency dependency); Collection<Rule> getRules(); DefaultModelResolver getModelResolver(); String resolvePomDependencies(String projectPath); void resolveArtifact(String artifactCoord); @Nullable Model resolveEffectiveModel(ModelSource modelSource, Set<String> exclusions, Rule parent); boolean addArtifact(Rule dependency, String parent); String downloadSha1(Rule rule);  }### Answer:
@Test public void testGetSha1Url() throws Exception { assertThat(Resolver.getSha1Url("http: .isEqualTo("http: assertThat(Resolver.getSha1Url("http: .isEqualTo("http: }
@Test public void testGetSha1UrlOnlyAtEOL() throws Exception { assertThat(Resolver.getSha1Url("http: .isEqualTo("http: }