private final Artifact version2 = new Artifact("version", "version", "2", "jar");
private final Artifact version3 = new Artifact("version", "version", "3", "jar");
public void testSelectHighestFromRepo() throws Exception {
ArtifactManager artifactManager = new DefaultArtifactManager();
MockRepository mockRepository = getRepo();
ArtifactResolver artifactResolver = new DefaultArtifactResolver(artifactManager, mockRepository);
Artifact unresolvedArtifact = new Artifact("version", "version", (Version) null, "jar");
Artifact artifact = artifactResolver.resolveInClassLoader(unresolvedArtifact);
assertEquals(version3, artifact);