@Test
public void downloadArtifact()
throws Exception
{
Gav gav =
new Gav(this.getTestId(), "release-jar", "1", null, "jar", 0, new Date().getTime(),
"Release Jar", false, null, false, null);
File artifact = downloadArtifactFromGroup("nexus-test", gav, "./target/downloaded-jars");
assertTrue(artifact.exists());
File originalFile =
this.getTestResourceAsFile("projects/" + gav.getArtifactId() + "/" + gav.getArtifactId() + "."
+ gav.getExtension());
Assert.assertTrue(FileTestingUtils.compareFileSHA1s(originalFile, artifact));
}