}
} );
assertEquals( 6, artifacts.size() );
ArtifactMetadata artifactMetadata = artifacts.get( 0 );
assertEquals( "test-artifact-1.0-20100308.230825-1.jar", artifactMetadata.getId() );
MavenArtifactFacet facet = (MavenArtifactFacet) artifactMetadata.getFacet( MavenArtifactFacet.FACET_ID );
assertEquals( 1, facet.getBuildNumber() );
assertEquals( "20100308.230825", facet.getTimestamp() );
assertNull( facet.getClassifier() );
assertEquals( "jar", facet.getType() );
artifactMetadata = artifacts.get( 1 );
assertEquals( "test-artifact-1.0-20100308.230825-1.pom", artifactMetadata.getId() );
facet = (MavenArtifactFacet) artifactMetadata.getFacet( MavenArtifactFacet.FACET_ID );
assertEquals( 1, facet.getBuildNumber() );
assertEquals( "20100308.230825", facet.getTimestamp() );
assertNull( facet.getClassifier() );
assertEquals( "pom", facet.getType() );
artifactMetadata = artifacts.get( 2 );
assertEquals( "test-artifact-1.0-20100310.014828-2-javadoc.jar", artifactMetadata.getId() );
facet = (MavenArtifactFacet) artifactMetadata.getFacet( MavenArtifactFacet.FACET_ID );
assertEquals( 2, facet.getBuildNumber() );
assertEquals( "20100310.014828", facet.getTimestamp() );
assertEquals( "javadoc", facet.getClassifier() );
assertEquals( "javadoc", facet.getType() );
artifactMetadata = artifacts.get( 3 );
assertEquals( "test-artifact-1.0-20100310.014828-2-sources.jar", artifactMetadata.getId() );
facet = (MavenArtifactFacet) artifactMetadata.getFacet( MavenArtifactFacet.FACET_ID );
assertEquals( 2, facet.getBuildNumber() );
assertEquals( "20100310.014828", facet.getTimestamp() );
assertEquals( "sources", facet.getClassifier() );
assertEquals( "java-source", facet.getType() );
artifactMetadata = artifacts.get( 4 );
assertEquals( "test-artifact-1.0-20100310.014828-2.jar", artifactMetadata.getId() );
facet = (MavenArtifactFacet) artifactMetadata.getFacet( MavenArtifactFacet.FACET_ID );
assertEquals( 2, facet.getBuildNumber() );
assertEquals( "20100310.014828", facet.getTimestamp() );
assertNull( facet.getClassifier() );
assertEquals( "jar", facet.getType() );
artifactMetadata = artifacts.get( 5 );
assertEquals( "test-artifact-1.0-20100310.014828-2.pom", artifactMetadata.getId() );
facet = (MavenArtifactFacet) artifactMetadata.getFacet( MavenArtifactFacet.FACET_ID );
assertEquals( 2, facet.getBuildNumber() );
assertEquals( "20100310.014828", facet.getTimestamp() );
assertNull( facet.getClassifier() );
assertEquals( "pom", facet.getType() );
}