@Test
public void cannotAddMultipleArtifactsWithTheSameTypeAndClassifier() {
// No classifier
Artifact mainArtifact = createTestArtifact("someName", null);
artifactPom.addArtifact(mainArtifact, new File("someFile"));
assertIsDuplicate(mainArtifact, new File("someFile"));
assertIsDuplicate(mainArtifact, new File("otherFile"));
assertIsDuplicate(createTestArtifact("otherName", null), new File("otherFile"));
// Classifier
Artifact classifierArtifact = createTestArtifact("someName", "classifier");
artifactPom.addArtifact(classifierArtifact, new File("classifierFile"));
assertIsDuplicate(classifierArtifact, new File("someFile"));
assertIsDuplicate(classifierArtifact, new File("otherFile"));
assertIsDuplicate(createTestArtifact("otherName", "classifier"), new File("otherFile"));