@@ -0,0 +1,1438 @@
+package org.fedoraproject.maven.repository;%0A%0Aimport java.nio.file.Paths;%0A%0Aimport org.codehaus.plexus.PlexusTestCase;%0Aimport org.fedoraproject.maven.config.Configuration;%0Aimport org.fedoraproject.maven.config.Configurator;%0Aimport org.fedoraproject.maven.config.Repository;%0Aimport org.fedoraproject.maven.config.RepositoryConfigurator;%0Aimport org.fedoraproject.maven.model.Artifact;%0A%0Apublic class FlatRepositoryTest%0A    extends PlexusTestCase%0A%7B%0A    public void testJppRepository()%0A        throws Exception%0A    %7B%0A        Configurator configurator = lookup( Configurator.class );%0A        Configuration configuration = configurator.getConfiguration();%0A%0A        Repository repository = new Repository();%0A        repository.setId( %22test123%22 );%0A        repository.setType( %22flat%22 );%0A        configuration.addRepository( repository );%0A%0A        RepositoryConfigurator repoConfigurator = lookup( RepositoryConfigurator.class );%0A        org.fedoraproject.maven.repository.Repository repo = repoConfigurator.configureRepository( %22test123%22 );%0A        assertNotNull( repo );%0A%0A        Artifact artifact = new Artifact( %22JPP/foo.bar-bazz%22, %22the-artifact%22, %221.2.3%22, %22baz%22 );%0A        assertEquals( Paths.get( %22JPP.foo.bar-bazz-the-artifact-1.2.3.baz%22 ), repo.getPrimaryArtifactPath( artifact ) );%0A        assertEquals( Paths.get( %22JPP.foo.bar-bazz-the-artifact.baz%22 ),%0A                      repo.getPrimaryArtifactPath( artifact.clearVersion() ) );%0A    %7D%0A%7D%0A

Implement FlatRepositoryTest