### Question:
Resolver { static String extractSha1(String sha1Contents) { return sha1Contents.split("\\s+")[0]; } 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 testExtractSha1() { assertThat(Resolver.extractSha1("5fe28b9518e58819180a43a850fbc0dd24b7c050")) .isEqualTo("5fe28b9518e58819180a43a850fbc0dd24b7c050"); assertThat(Resolver.extractSha1("5fe28b9518e58819180a43a850fbc0dd24b7c050\n")) .isEqualTo("5fe28b9518e58819180a43a850fbc0dd24b7c050"); assertThat(Resolver.extractSha1( "83cd2cd674a217ade95a4bb83a8a14f351f48bd0 /home/maven/repository-staging/to-ibiblio/maven2/antlr/antlr/2.7.7/antlr-2.7.7.jar")) .isEqualTo("83cd2cd674a217ade95a4bb83a8a14f351f48bd0"); }