String enc = "%72%65%70%6F";
File dir = TestFileUtils.createTempDir();
String repoDir = dir.toURI().toURL().toString() + "/" + enc;
repository = new RemoteRepository( "test", "default", repoDir );
Artifact artifact = new DefaultArtifact( "gid", "aid", "jar", "ver" );
String content = "test content";
uploadArtifact( artifact, content );
File repo = new File( dir, "repo" );
assertTrue( "Repository from encoded URL does not exist.", repo.exists() );