File file = getTestFile( "src/test/managed-repository" );
repository =
repositoryFactory.createArtifactRepository( "test", file.toURI().toURL().toString(), layout, null, null );
RepositoryArtifactIndexFactory factory =
(RepositoryArtifactIndexFactory) lookup( RepositoryArtifactIndexFactory.ROLE, "lucene" );
indexLocation = getTestFile( "target/test-index" );
FileUtils.deleteDirectory( indexLocation );
index = factory.createStandardIndex( indexLocation );
records.put( "test-jar", recordFactory.createRecord( createArtifact( "test-jar" ) ) );
records.put( "test-jar-jdk14",
recordFactory.createRecord( createArtifact( "test-jar", "1.0", "jar", "jdk14" ) ) );
records.put( "test-jar-and-pom",